#[non_exhaustive]#[repr(u8)]pub enum SecurityMode {
Open = 0,
WEP40Bit = 1,
WEP104Bit = 2,
WEP128Bit = 3,
WPA_TKIP = 4,
WPA2_TKIP = 5,
WPA_AES = 6,
WPA2_AES = 7,
}Expand description
Represents all the supported Wi-Fi security modes.
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.
Open = 0
No authentication
WEP40Bit = 1
WEP 40bit authentication
WEP104Bit = 2
WEP 104bit authentication
WEP128Bit = 3
WEP 128bit authentication
WPA_TKIP = 4
WPA-TKIP authentication
WPA2_TKIP = 5
WPA2-TKIP authentication
WPA_AES = 6
WPA-AES authentication
WPA2_AES = 7
WPA2-AES authentication
Trait Implementations§
Source§impl Clone for SecurityMode
impl Clone for SecurityMode
Source§fn clone(&self) -> SecurityMode
fn clone(&self) -> SecurityMode
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 SecurityMode
impl Debug for SecurityMode
Source§impl From<SecurityMode> for acSecurityMode
impl From<SecurityMode> for acSecurityMode
Source§fn from(v: SecurityMode) -> Self
fn from(v: SecurityMode) -> Self
Converts to this type from the input type.
Source§impl PartialEq for SecurityMode
impl PartialEq for SecurityMode
impl Copy for SecurityMode
impl Eq for SecurityMode
impl StructuralPartialEq for SecurityMode
Auto Trait Implementations§
impl Freeze for SecurityMode
impl RefUnwindSafe for SecurityMode
impl Send for SecurityMode
impl Sync for SecurityMode
impl Unpin for SecurityMode
impl UnwindSafe for SecurityMode
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)