pub struct TransportConfig {
pub tcp_listen_port: Option<u16>,
pub tcp_connect_address: Option<String>,
pub enable_mdns: bool,
pub enable_bluetooth: bool,
pub enable_websocket: bool,
pub custom: HashMap<String, String>,
}Expand description
Transport-specific configuration
Fields§
§tcp_listen_port: Option<u16>TCP listening port (None = auto-assign)
tcp_connect_address: Option<String>TCP address to connect to (for client mode)
enable_mdns: boolEnable mDNS local discovery
enable_bluetooth: boolEnable Bluetooth discovery
enable_websocket: boolEnable WebSocket transport
custom: HashMap<String, String>Custom transport configuration
Trait Implementations§
Source§impl Clone for TransportConfig
impl Clone for TransportConfig
Source§fn clone(&self) -> TransportConfig
fn clone(&self) -> TransportConfig
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 TransportConfig
impl Debug for TransportConfig
Auto Trait Implementations§
impl Freeze for TransportConfig
impl RefUnwindSafe for TransportConfig
impl Send for TransportConfig
impl Sync for TransportConfig
impl Unpin for TransportConfig
impl UnsafeUnpin for TransportConfig
impl UnwindSafe for TransportConfig
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