pub struct GatewayConfig {
pub bind: SocketAddr,
pub welcome_text: String,
pub max_bandwidth: u32,
pub max_users: u32,
pub recording_allowed: bool,
pub allow_html: bool,
pub message_length: u32,
pub version: (u16, u16, u16),
}Expand description
Server-wide configuration advertised during the handshake.
Fields§
§bind: SocketAddrWhere the TLS control plane listens. The voice plane binds the same port on UDP, as Murmur does.
welcome_text: StringWelcome text sent in ServerSync. Empty means “omit the field”.
max_bandwidth: u32Advertised maximum bandwidth (bits/s), echoed to the client in
ServerSync and ServerConfig.
max_users: u32Advertised maximum number of users (ServerConfig.max_users). Also the
admission ceiling: past it, connections are refused rather than accepted
into a runtime that advertised a smaller number.
recording_allowed: boolWhether the client’s built-in recording feature is announced as allowed
(ServerConfig.recording_allowed). Advisory only (spec 21.8).
allow_html: boolWhether HTML is allowed in text (ServerConfig.allow_html).
message_length: u32Maximum text-message length (ServerConfig.message_length).
version: (u16, u16, u16)Advertised server version (major, minor, patch). Defaults to 1.5.0 so a real client negotiates the protobuf UDP format (introduced in 1.5.0).
Implementations§
Source§impl GatewayConfig
impl GatewayConfig
Sourcepub fn version_v2(&self) -> u64
pub fn version_v2(&self) -> u64
Encode the advertised version in the Mumble v2 format.
REF: references/mumble/src/Version.h : fromComponents -
version_v2 = (major << 48) | (minor << 32) | (patch << 16).
Trait Implementations§
Source§impl Clone for GatewayConfig
impl Clone for GatewayConfig
Source§fn clone(&self) -> GatewayConfig
fn clone(&self) -> GatewayConfig
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more