#[non_exhaustive]pub enum AuthMethod {
None,
Wep,
Wpa,
Wpa2Personal,
WpaWpa2Personal,
Wpa2Enterprise,
Wpa3Personal,
Wpa2Wpa3Personal,
WapiPersonal,
}Available on crate feature
wifi only.Expand description
Supported Wi-Fi authentication methods.
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 authentication (open network).
Wep
Wired Equivalent Privacy (WEP) authentication.
Wpa
Wi-Fi Protected Access (WPA) authentication.
Wpa2Personal
Wi-Fi Protected Access 2 (WPA2) Personal authentication (default).
WpaWpa2Personal
WPA/WPA2 Personal authentication (supports both).
Wpa2Enterprise
WPA2 Enterprise authentication.
Wpa3Personal
WPA3 Personal authentication.
Wpa2Wpa3Personal
WPA2/WPA3 Personal authentication (supports both).
WapiPersonal
WLAN Authentication and Privacy Infrastructure (WAPI).
Trait Implementations§
Source§impl Clone for AuthMethod
impl Clone for AuthMethod
Source§fn clone(&self) -> AuthMethod
fn clone(&self) -> AuthMethod
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 AuthMethod
impl Debug for AuthMethod
Source§impl Default for AuthMethod
impl Default for AuthMethod
Source§fn default() -> AuthMethod
fn default() -> AuthMethod
Returns the “default value” for a type. Read more
Source§impl Format for AuthMethod
impl Format for AuthMethod
Source§impl PartialEq for AuthMethod
impl PartialEq for AuthMethod
Source§impl PartialOrd for AuthMethod
impl PartialOrd for AuthMethod
Source§fn partial_cmp(&self, other: &AuthMethod) -> Option<Ordering>
fn partial_cmp(&self, other: &AuthMethod) -> Option<Ordering>
impl Copy for AuthMethod
impl Eq for AuthMethod
impl StructuralPartialEq for AuthMethod
Auto Trait Implementations§
impl Freeze for AuthMethod
impl RefUnwindSafe for AuthMethod
impl Send for AuthMethod
impl Sync for AuthMethod
impl Unpin for AuthMethod
impl UnwindSafe for AuthMethod
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)