pub struct ServerConfig {Show 17 fields
pub local_address: SocketAddr,
pub default_payload_type: u8,
pub clock_rate: u32,
pub security_config: ServerSecurityConfig,
pub jitter_buffer_size: u32,
pub jitter_max_packet_age_ms: u32,
pub enable_jitter_buffer: bool,
pub max_clients: usize,
pub rtcp_mux: bool,
pub media_sync_enabled: Option<bool>,
pub ssrc_demultiplexing_enabled: Option<bool>,
pub csrc_management_enabled: bool,
pub header_extensions_enabled: bool,
pub header_extension_format: ExtensionFormat,
pub transmit_buffer_config: TransmitBufferConfig,
pub buffer_limits: BufferLimits,
pub high_performance_buffers_enabled: bool,
}Expand description
Server configuration
Fields§
§local_address: SocketAddrLocal address to bind to
default_payload_type: u8Default payload type
clock_rate: u32Clock rate in Hz
security_config: ServerSecurityConfigSecurity configuration
jitter_buffer_size: u32Jitter buffer size in packets
jitter_max_packet_age_ms: u32Maximum packet age in milliseconds
enable_jitter_buffer: boolEnable jitter buffer
max_clients: usizeMaximum number of clients
rtcp_mux: boolEnable RTCP multiplexing (RFC 5761)
media_sync_enabled: Option<bool>Enable media synchronization features (optional)
ssrc_demultiplexing_enabled: Option<bool>Enable SSRC demultiplexing for handling multiple streams
csrc_management_enabled: boolEnable CSRC management for conferencing scenarios
header_extensions_enabled: boolEnable header extensions support (RFC 8285)
header_extension_format: ExtensionFormatHeader extension format (One-byte or Two-byte)
transmit_buffer_config: TransmitBufferConfigTransmit buffer configuration
buffer_limits: BufferLimitsBuffer limits
high_performance_buffers_enabled: boolEnable high-performance buffers
Trait Implementations§
Source§impl Clone for ServerConfig
impl Clone for ServerConfig
Source§fn clone(&self) -> ServerConfig
fn clone(&self) -> ServerConfig
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for ServerConfig
impl RefUnwindSafe for ServerConfig
impl Send for ServerConfig
impl Sync for ServerConfig
impl Unpin for ServerConfig
impl UnwindSafe for ServerConfig
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more