#[non_exhaustive]pub enum ModeConfig {
None,
Client(ClientConfig),
AccessPoint(AccessPointConfig),
ApSta(ClientConfig, AccessPointConfig),
EapClient(EapClientConfig),
}Available on crate feature
wifi only.Expand description
Configuration of Wi-Fi operation mode.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
None
No configuration (default).
Client(ClientConfig)
Client-only configuration.
AccessPoint(AccessPointConfig)
Access point-only configuration.
ApSta(ClientConfig, AccessPointConfig)
Simultaneous client and access point configuration.
EapClient(EapClientConfig)
Available on crate feature
wifi-eap only.EAP client configuration for enterprise Wi-Fi.
Trait Implementations§
Source§impl Clone for ModeConfig
impl Clone for ModeConfig
Source§fn clone(&self) -> ModeConfig
fn clone(&self) -> ModeConfig
Returns a duplicate of the value. Read more
1.0.0§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ModeConfig
impl Debug for ModeConfig
Source§impl Default for ModeConfig
impl Default for ModeConfig
Source§fn default() -> ModeConfig
fn default() -> ModeConfig
Returns the “default value” for a type. Read more
Source§impl Format for ModeConfig
impl Format for ModeConfig
Source§impl PartialEq for ModeConfig
impl PartialEq for ModeConfig
Source§impl TryFrom<&ModeConfig> for WifiMode
impl TryFrom<&ModeConfig> for WifiMode
impl Eq for ModeConfig
impl StructuralPartialEq for ModeConfig
Auto Trait Implementations§
impl Freeze for ModeConfig
impl RefUnwindSafe for ModeConfig
impl Send for ModeConfig
impl Sync for ModeConfig
impl Unpin for ModeConfig
impl UnwindSafe for ModeConfig
Blanket Implementations§
§impl<T> Any for Twhere
T: 'static + ?Sized,
impl<T> Any for Twhere
T: 'static + ?Sized,
§impl<T> Borrow<T> for Twhere
T: ?Sized,
impl<T> Borrow<T> for Twhere
T: ?Sized,
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)