pub struct ServerSync {
pub session: Option<u32>,
pub max_bandwidth: Option<u32>,
pub welcome_text: Option<String>,
pub permissions: Option<u64>,
}
Expand description
ServerSync message is sent by the server when it has authenticated the user and finished synchronizing the server state.
Fields§
§session: Option<u32>
The session of the current user.
max_bandwidth: Option<u32>
Maximum bandwidth that the user should use.
welcome_text: Option<String>
Server welcome text.
permissions: Option<u64>
Current user permissions in the root channel. Note: The permissions data type usually is uin32 (e.g. in PermissionQuery and PermissionDenied messages). Here it is uint64 because of an oversight in the past. Nonetheless it should never exceed the uin32 range. See also: https://github.com/mumble-voip/mumble/issues/5139
Implementations§
Source§impl ServerSync
impl ServerSync
Sourcepub fn session(&self) -> u32
pub fn session(&self) -> u32
Returns the value of session
, or the default value if session
is unset.
Sourcepub fn max_bandwidth(&self) -> u32
pub fn max_bandwidth(&self) -> u32
Returns the value of max_bandwidth
, or the default value if max_bandwidth
is unset.
Sourcepub fn welcome_text(&self) -> &str
pub fn welcome_text(&self) -> &str
Returns the value of welcome_text
, or the default value if welcome_text
is unset.
Sourcepub fn permissions(&self) -> u64
pub fn permissions(&self) -> u64
Returns the value of permissions
, or the default value if permissions
is unset.
Trait Implementations§
Source§impl Clone for ServerSync
impl Clone for ServerSync
Source§fn clone(&self) -> ServerSync
fn clone(&self) -> ServerSync
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for ServerSync
impl Debug for ServerSync
Source§impl Default for ServerSync
impl Default for ServerSync
Source§impl Message for ServerSync
impl Message for ServerSync
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
.