pub struct LanConfig {
pub enabled: bool,
pub mdns_enabled: bool,
pub multicast_enabled: bool,
}Expand description
Configure the Local Area Network (LAN) transport.
Fields§
§enabled: boolWhether to enable the LAN transport.
mdns_enabled: boolWhether to enable mDNS peer discovery.
multicast_enabled: boolWhether to enable multicast.
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for LanConfig
impl<'de> Deserialize<'de> for LanConfig
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for LanConfig
impl StructuralPartialEq for LanConfig
Auto Trait Implementations§
impl Freeze for LanConfig
impl RefUnwindSafe for LanConfig
impl Send for LanConfig
impl Sync for LanConfig
impl Unpin for LanConfig
impl UnwindSafe for LanConfig
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> CompatExt for T
impl<T> CompatExt for T
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more