pub struct AwdlConfig {
pub enabled: bool,
}Expand description
Configuration for Apple Wireless Direct Link (AWDL) network transport. Not supported on all platforms.
Fields§
§enabled: boolWhether to enable the AWDL transport.
Implementations§
Source§impl AwdlConfig
impl AwdlConfig
Sourcepub fn new() -> Self
pub fn new() -> Self
Create a new AwdlConfig with default settings.
Trait Implementations§
Source§impl Clone for AwdlConfig
impl Clone for AwdlConfig
Source§fn clone(&self) -> AwdlConfig
fn clone(&self) -> AwdlConfig
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 AwdlConfig
impl Debug for AwdlConfig
Source§impl Default for AwdlConfig
impl Default for AwdlConfig
Source§fn default() -> AwdlConfig
fn default() -> AwdlConfig
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for AwdlConfigwhere
AwdlConfig: Default,
impl<'de> Deserialize<'de> for AwdlConfigwhere
AwdlConfig: Default,
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
Source§impl PartialEq for AwdlConfig
impl PartialEq for AwdlConfig
Source§impl Serialize for AwdlConfig
impl Serialize for AwdlConfig
impl Eq for AwdlConfig
impl StructuralPartialEq for AwdlConfig
Auto Trait Implementations§
impl Freeze for AwdlConfig
impl RefUnwindSafe for AwdlConfig
impl Send for AwdlConfig
impl Sync for AwdlConfig
impl Unpin for AwdlConfig
impl UnwindSafe for AwdlConfig
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