pub struct ClientConfig {
pub scheme: String,
pub host: String,
pub port: u16,
pub auth: Option<Auth>,
pub instance: u32,
pub host_id: String,
pub latency: i32,
pub mdns_service_type: String,
pub client_name: String,
pub encryption_psk: Option<String>,
}Expand description
Configuration for the embeddable client.
Fields§
§scheme: StringConnection scheme: “tcp”, “ws”, or “wss”. Default: “tcp”.
host: StringServer hostname or IP (empty = mDNS discovery).
port: u16Server port. Default: 1704.
auth: Option<Auth>Optional authentication for Hello handshake.
instance: u32Instance id (for multiple clients on one host).
host_id: StringUnique host identifier (default: MAC address).
latency: i32Additional latency in milliseconds (subtracted from buffer).
mdns_service_type: StringmDNS service type. Default: “_snapcast._tcp.local.”.
client_name: StringClient name sent in Hello. Default: “Snapclient”.
encryption_psk: Option<String>Pre-shared key for f32lz4 decryption. None = auto-detect from env SNAPCAST_PSK.
Trait Implementations§
Source§impl Clone for ClientConfig
impl Clone for ClientConfig
Source§fn clone(&self) -> ClientConfig
fn clone(&self) -> ClientConfig
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 moreSource§impl Debug for ClientConfig
impl Debug for ClientConfig
Auto Trait Implementations§
impl Freeze for ClientConfig
impl RefUnwindSafe for ClientConfig
impl Send for ClientConfig
impl Sync for ClientConfig
impl Unpin for ClientConfig
impl UnsafeUnpin for ClientConfig
impl UnwindSafe for ClientConfig
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