#[repr(u8)]pub enum AuthMethod {
None = 0,
WEP = 1,
WPA = 2,
WPA2Personal = 3,
WPAWPA2Personal = 4,
WPA2Enterprise = 5,
WPA3Personal = 6,
WPA2WPA3Personal = 7,
WAPIPersonal = 8,
}Variants§
None = 0
WEP = 1
WPA = 2
WPA2Personal = 3
WPAWPA2Personal = 4
WPA2Enterprise = 5
WPA3Personal = 6
WPA2WPA3Personal = 7
WAPIPersonal = 8
Implementations§
Source§impl AuthMethod
impl AuthMethod
Trait Implementations§
Source§impl<O: Into<EnumSet<AuthMethod>>> BitAnd<O> for AuthMethod
impl<O: Into<EnumSet<AuthMethod>>> BitAnd<O> for AuthMethod
Source§impl<O: Into<EnumSet<AuthMethod>>> BitOr<O> for AuthMethod
impl<O: Into<EnumSet<AuthMethod>>> BitOr<O> for AuthMethod
Source§impl<O: Into<EnumSet<AuthMethod>>> BitXor<O> for AuthMethod
impl<O: Into<EnumSet<AuthMethod>>> BitXor<O> for AuthMethod
Source§impl Clone for AuthMethod
impl Clone for AuthMethod
Source§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<'de> Deserialize<'de> for AuthMethod
impl<'de> Deserialize<'de> for AuthMethod
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Display for AuthMethod
impl Display for AuthMethod
Source§impl EnumMessage for AuthMethod
impl EnumMessage for AuthMethod
fn get_message(&self) -> Option<&'static str>
fn get_detailed_message(&self) -> Option<&'static str>
Source§fn get_documentation(&self) -> Option<&'static str>
fn get_documentation(&self) -> Option<&'static str>
Get the doc comment associated with a variant if it exists.
fn get_serializations(&self) -> &'static [&'static str]
Source§impl EnumSetConstHelper for AuthMethod
impl EnumSetConstHelper for AuthMethod
Source§const CONST_INIT_HELPER: __EnumSetInitHelper = __EnumSetInitHelper
const CONST_INIT_HELPER: __EnumSetInitHelper = __EnumSetInitHelper
The instance of the
ConstInitHelper.Source§const CONST_OP_HELPER: __EnumSetOpHelper = __EnumSetOpHelper
const CONST_OP_HELPER: __EnumSetOpHelper = __EnumSetOpHelper
The instance of the
ConstOpHelper.Source§type ConstInitHelper = __EnumSetInitHelper
type ConstInitHelper = __EnumSetInitHelper
A helper type used to convert values to EnumSets at compile-time.
Source§type ConstOpHelper = __EnumSetOpHelper
type ConstOpHelper = __EnumSetOpHelper
A helper type used to implement compile-time operations on enums.
Source§impl EnumSetTypePrivate for AuthMethod
impl EnumSetTypePrivate for AuthMethod
Source§const VARIANT_COUNT: u32 = 9u32
const VARIANT_COUNT: u32 = 9u32
The number of variants in the bitset.
Source§fn enum_into_u32(self) -> u32
fn enum_into_u32(self) -> u32
Converts an enum of this type into its bit position.
Source§unsafe fn enum_from_u32(val: u32) -> Self
unsafe fn enum_from_u32(val: u32) -> Self
Converts a bit position into an enum value.
Source§fn serialize<S: Serializer>(
set: EnumSet<AuthMethod>,
ser: S,
) -> Result<S::Ok, S::Error>
fn serialize<S: Serializer>( set: EnumSet<AuthMethod>, ser: S, ) -> Result<S::Ok, S::Error>
Serializes the
EnumSet. Read moreSource§fn deserialize<'de, D: Deserializer<'de>>(
de: D,
) -> Result<EnumSet<AuthMethod>, D::Error>
fn deserialize<'de, D: Deserializer<'de>>( de: D, ) -> Result<EnumSet<AuthMethod>, D::Error>
Deserializes the
EnumSet.Source§unsafe fn enum_from_u32_checked(val: u32) -> Self
unsafe fn enum_from_u32_checked(val: u32) -> Self
Converts a bit position into an enum value, with an debug_assert.
Source§impl FromStr for AuthMethod
impl FromStr for AuthMethod
Source§impl IntoEnumIterator for AuthMethod
impl IntoEnumIterator for AuthMethod
type Iterator = AuthMethodIter
fn iter() -> AuthMethodIter ⓘ
Source§impl Not for AuthMethod
impl Not for AuthMethod
Source§impl PartialEq<EnumSet<AuthMethod>> for AuthMethod
impl PartialEq<EnumSet<AuthMethod>> for AuthMethod
Source§impl PartialEq for AuthMethod
impl PartialEq for AuthMethod
Source§impl PartialOrd for AuthMethod
impl PartialOrd for AuthMethod
Source§impl Serialize for AuthMethod
impl Serialize for AuthMethod
Source§impl<O: Into<EnumSet<AuthMethod>>> Sub<O> for AuthMethod
impl<O: Into<EnumSet<AuthMethod>>> Sub<O> for AuthMethod
Source§impl TryFrom<&str> for AuthMethod
impl TryFrom<&str> for AuthMethod
Source§impl TryFrom<u8> for AuthMethod
impl TryFrom<u8> for AuthMethod
Source§type Error = TryFromPrimitiveError<AuthMethod>
type Error = TryFromPrimitiveError<AuthMethod>
The type returned in the event of a conversion error.
Source§impl TryFromPrimitive for AuthMethod
impl TryFromPrimitive for AuthMethod
const NAME: &'static str = "AuthMethod"
type Primitive = u8
type Error = TryFromPrimitiveError<AuthMethod>
fn try_from_primitive( number: Self::Primitive, ) -> Result<Self, TryFromPrimitiveError<Self>>
Source§impl VariantNames for AuthMethod
impl VariantNames for AuthMethod
impl Copy for AuthMethod
impl EnumSetType for AuthMethod
impl Eq 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 UnsafeUnpin for AuthMethod
impl UnwindSafe for AuthMethod
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