pub enum Protection {
Unknown = 0,
Open = 1,
Wep = 2,
Wpa1 = 3,
Wpa1Wpa2PersonalTkipOnly = 4,
Wpa2PersonalTkipOnly = 5,
Wpa1Wpa2Personal = 6,
Wpa2Personal = 7,
Wpa2Wpa3Personal = 8,
Wpa3Personal = 9,
Wpa2Enterprise = 10,
Wpa3Enterprise = 11,
}
Expand description
Supported wireless network protection.
Describes the protection configured for a BSS. The tags of each variant are ordered such that
greater tags are preferred over lower tags. For example, Wpa2Personal
is preferred over
Wep
.
Variants§
Unknown = 0
Open = 1
Wep = 2
Wpa1 = 3
Wpa1Wpa2PersonalTkipOnly = 4
Wpa2PersonalTkipOnly = 5
Wpa1Wpa2Personal = 6
Wpa2Personal = 7
Wpa2Wpa3Personal = 8
Wpa3Personal = 9
Wpa2Enterprise = 10
Wpa3Enterprise = 11
WPA3 Enterprise 192-bit mode. WPA3 spec specifies an optional 192-bit mode but says nothing about a non 192-bit version. Thus, colloquially, it’s likely that the term WPA3 Enterprise will be used to refer to WPA3 Enterprise 192-bit mode.
Trait Implementations§
Source§impl Clone for Protection
impl Clone for Protection
Source§fn clone(&self) -> Protection
fn clone(&self) -> Protection
Returns a copy 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 Protection
impl Debug for Protection
Source§impl Display for Protection
impl Display for Protection
Source§impl From<Protection> for Protection
impl From<Protection> for Protection
Source§fn from(protection: Protection) -> Protection
fn from(protection: Protection) -> Protection
Converts to this type from the input type.
Source§impl From<Protection> for Protection
impl From<Protection> for Protection
Source§fn from(protection: Protection) -> Self
fn from(protection: Protection) -> Self
Converts to this type from the input type.
Source§impl Ord for Protection
impl Ord for Protection
Source§fn cmp(&self, other: &Protection) -> Ordering
fn cmp(&self, other: &Protection) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for Protection
impl PartialEq for Protection
Source§impl PartialOrd for Protection
impl PartialOrd for Protection
impl Copy for Protection
impl Eq for Protection
impl StructuralPartialEq for Protection
Auto Trait Implementations§
impl Freeze for Protection
impl RefUnwindSafe for Protection
impl Send for Protection
impl Sync for Protection
impl Unpin for Protection
impl UnwindSafe for Protection
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,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)