Enum embedded_svc::wifi::Protocol
source · #[repr(u8)]
pub enum Protocol {
P802D11B,
P802D11BG,
P802D11BGN,
P802D11BGNLR,
P802D11LR,
}
Variants§
Implementations§
Trait Implementations§
source§impl<'de> Deserialize<'de> for Protocol
impl<'de> Deserialize<'de> for Protocol
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 EnumMessage for Protocol
impl EnumMessage for Protocol
fn get_message(&self) -> Option<&'static str>
fn get_detailed_message(&self) -> Option<&'static str>
fn get_serializations(&self) -> &'static [&'static str]
source§impl EnumSetTypePrivate for Protocol
impl EnumSetTypePrivate for Protocol
source§const ALL_BITS: Self::Repr = {transmute(0x1f): <wifi::Protocol as enumset::__internal::EnumSetTypePrivate>::Repr}
const ALL_BITS: Self::Repr = {transmute(0x1f): <wifi::Protocol as enumset::__internal::EnumSetTypePrivate>::Repr}
A mask of bits that are valid 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<Protocol>,
ser: S
) -> Result<S::Ok, S::Error>
fn serialize<S: Serializer>(
set: EnumSet<Protocol>,
ser: S
) -> Result<S::Ok, S::Error>
Serializes the
EnumSet
. Read moresource§fn deserialize<'de, D: Deserializer<'de>>(
de: D
) -> Result<EnumSet<Protocol>, D::Error>
fn deserialize<'de, D: Deserializer<'de>>(
de: D
) -> Result<EnumSet<Protocol>, D::Error>
Deserializes the
EnumSet
.source§impl IntoEnumIterator for Protocol
impl IntoEnumIterator for Protocol
type Iterator = ProtocolIter
fn iter() -> ProtocolIter ⓘ
source§impl PartialEq<EnumSet<Protocol>> for Protocol
impl PartialEq<EnumSet<Protocol>> for Protocol
source§impl PartialOrd<Protocol> for Protocol
impl PartialOrd<Protocol> for Protocol
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 TryFrom<u8> for Protocol
impl TryFrom<u8> for Protocol
§type Error = TryFromPrimitiveError<Protocol>
type Error = TryFromPrimitiveError<Protocol>
The type returned in the event of a conversion error.