Enum embedded_svc::wifi::AuthMethod
source · #[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 EnumSetTypePrivate for AuthMethod
impl EnumSetTypePrivate for AuthMethod
source§const ALL_BITS: Self::Repr = {transmute(0x01ff): <wifi::AuthMethod as enumset::__internal::EnumSetTypePrivate>::Repr}
const ALL_BITS: Self::Repr = {transmute(0x01ff): <wifi::AuthMethod as enumset::__internal::EnumSetTypePrivate>::Repr}
A mask of bits that are valid in the bitset.
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§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§fn partial_cmp(&self, other: &AuthMethod) -> Option<Ordering>
fn partial_cmp(&self, other: &AuthMethod) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self and other) and is used by the <=
operator. Read moresource§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
§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
type Primitive = u8
type Error = TryFromPrimitiveError<AuthMethod>
const NAME: &'static str = "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 RefUnwindSafe for AuthMethod
impl Send for AuthMethod
impl Sync for AuthMethod
impl Unpin 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