pub struct Ping {
pub timestamp: u64,
pub request_extended_information: bool,
pub server_version_v2: u64,
pub user_count: u32,
pub max_user_count: u32,
pub max_bandwidth_per_user: u32,
}Expand description
Ping message for checking UDP connectivity (and roundtrip ping) and potentially obtaining further server details (e.g. version).
Fields§
§timestamp: u64Timestamp as encoded by the client. A server is not supposed to attempt to decode or modify this field. Therefore, clients may choose an arbitrary format for this timestamp (as long as it fits into a uint64 field).
request_extended_information: boolA flag set by the sending client, if it wants to obtain additional information about the server.
server_version_v2: u64The version of the server in the new version format. The new protobuf Ping packet introduced with 1.5 drops support for the legacy version format since both server and client have to support this new format. (See https://github.com/mumble-voip/mumble/issues/5827)
user_count: u32The amount of users currently connected to the server
max_user_count: u32The maximum amount of users permitted on this server
max_bandwidth_per_user: u32The maximum bandwidth each user is allowed to use for sending audio to the server
Trait Implementations§
Source§impl Message for Ping
impl Message for Ping
Source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
Source§fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
Source§fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Source§fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
Source§fn encode_length_delimited_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_length_delimited_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Source§fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Source§fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Source§fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self. Read moreSource§fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self.