pub struct ServerConfig {
pub stream_port: u16,
pub buffer_ms: u32,
pub codec: String,
pub sample_format: String,
pub mdns_service_type: String,
pub auth: Option<Arc<dyn AuthValidator>>,
pub encryption_psk: Option<String>,
}Expand description
Server configuration for the embeddable library.
Fields§
§stream_port: u16TCP port for binary protocol (client connections). Default: 1704.
buffer_ms: u32Audio buffer size in milliseconds. Default: 1000.
codec: StringDefault codec: “f32lz4”, “pcm”, “opus”, “ogg”. Default: “f32lz4”.
sample_format: StringDefault sample format. Default: 48000:16:2.
mdns_service_type: StringmDNS service type. Default: “_snapcast._tcp.local.”.
auth: Option<Arc<dyn AuthValidator>>Auth validator for streaming clients. None = no auth required.
encryption_psk: Option<String>Pre-shared key for f32lz4 encryption. None = no encryption.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ServerConfig
impl !RefUnwindSafe for ServerConfig
impl Send for ServerConfig
impl Sync for ServerConfig
impl Unpin for ServerConfig
impl UnsafeUnpin for ServerConfig
impl !UnwindSafe for ServerConfig
Blanket Implementations§
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