pub struct ServerConfig {
pub max_bandwidth: Option<u32>,
pub welcome_text: Option<String>,
pub allow_html: Option<bool>,
pub message_length: Option<u32>,
pub image_message_length: Option<u32>,
pub max_users: Option<u32>,
pub recording_allowed: Option<bool>,
}
Expand description
Sent by the server when it informs the clients on server configuration details.
Fields§
§max_bandwidth: Option<u32>
The maximum bandwidth the clients should use.
welcome_text: Option<String>
Server welcome text.
allow_html: Option<bool>
True if the server allows HTML.
message_length: Option<u32>
Maximum text message length.
image_message_length: Option<u32>
Maximum image message length.
max_users: Option<u32>
The maximum number of users allowed on the server.
recording_allowed: Option<bool>
Whether using Mumble’s recording feature is allowed on the server
Implementations§
Source§impl ServerConfig
impl ServerConfig
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 allow_html(&self) -> bool
pub fn allow_html(&self) -> bool
Returns the value of allow_html
, or the default value if allow_html
is unset.
Sourcepub fn message_length(&self) -> u32
pub fn message_length(&self) -> u32
Returns the value of message_length
, or the default value if message_length
is unset.
Sourcepub fn image_message_length(&self) -> u32
pub fn image_message_length(&self) -> u32
Returns the value of image_message_length
, or the default value if image_message_length
is unset.
Sourcepub fn max_users(&self) -> u32
pub fn max_users(&self) -> u32
Returns the value of max_users
, or the default value if max_users
is unset.
Sourcepub fn recording_allowed(&self) -> bool
pub fn recording_allowed(&self) -> bool
Returns the value of recording_allowed
, or the default value if recording_allowed
is unset.
Trait Implementations§
Source§impl Clone for ServerConfig
impl Clone for ServerConfig
Source§fn clone(&self) -> ServerConfig
fn clone(&self) -> ServerConfig
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for ServerConfig
impl Debug for ServerConfig
Source§impl Default for ServerConfig
impl Default for ServerConfig
Source§impl Message for ServerConfig
impl Message for ServerConfig
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
.