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