#[non_exhaustive]pub enum WifiSecurity {
Wpa,
Wep,
None,
}Expand description
WiFi authentication mode for a WifiConfig.
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.
Wpa
WPA / WPA2 / WPA3 (all encoded as T:WPA).
Wep
WEP (T:WEP).
None
Open / no passphrase (T:nopass).
Implementations§
Trait Implementations§
Source§impl Clone for WifiSecurity
impl Clone for WifiSecurity
Source§fn clone(&self) -> WifiSecurity
fn clone(&self) -> WifiSecurity
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for WifiSecurity
Source§impl Debug for WifiSecurity
impl Debug for WifiSecurity
impl Eq for WifiSecurity
Source§impl PartialEq for WifiSecurity
impl PartialEq for WifiSecurity
impl StructuralPartialEq for WifiSecurity
Auto Trait Implementations§
impl Freeze for WifiSecurity
impl RefUnwindSafe for WifiSecurity
impl Send for WifiSecurity
impl Sync for WifiSecurity
impl Unpin for WifiSecurity
impl UnsafeUnpin for WifiSecurity
impl UnwindSafe for WifiSecurity
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