pub struct SuggestConfig {
pub version_v1: Option<u32>,
pub version_v2: Option<u64>,
pub positional: Option<bool>,
pub push_to_talk: Option<bool>,
}
Expand description
Sent by the server to inform the clients of suggested client configuration specified by the server administrator.
Fields§
§version_v1: Option<u32>
Suggested client version in the legacy format.
version_v2: Option<u64>
Suggested client version in the new format. Necessary since patch level may exceed 255. (See https://github.com/mumble-voip/mumble/issues/5827)
positional: Option<bool>
True if the administrator suggests positional audio to be used on this server.
push_to_talk: Option<bool>
True if the administrator suggests push to talk to be used on this server.
Implementations§
Source§impl SuggestConfig
impl SuggestConfig
Sourcepub fn version_v1(&self) -> u32
pub fn version_v1(&self) -> u32
Returns the value of version_v1
, or the default value if version_v1
is unset.
Sourcepub fn positional(&self) -> bool
pub fn positional(&self) -> bool
Returns the value of positional
, or the default value if positional
is unset.
Sourcepub fn push_to_talk(&self) -> bool
pub fn push_to_talk(&self) -> bool
Returns the value of push_to_talk
, or the default value if push_to_talk
is unset.
Sourcepub fn version_v2(&self) -> u64
pub fn version_v2(&self) -> u64
Returns the value of version_v2
, or the default value if version_v2
is unset.
Trait Implementations§
Source§impl Clone for SuggestConfig
impl Clone for SuggestConfig
Source§fn clone(&self) -> SuggestConfig
fn clone(&self) -> SuggestConfig
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for SuggestConfig
impl Debug for SuggestConfig
Source§impl Default for SuggestConfig
impl Default for SuggestConfig
Source§impl Message for SuggestConfig
impl Message for SuggestConfig
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
.