Enum embedded_svc::wifi::SecondaryChannel
source · #[repr(u8)]
pub enum SecondaryChannel {
None,
Above,
Below,
}Variants§
Implementations§
source§impl SecondaryChannel
impl SecondaryChannel
pub const fn from_repr(discriminant: u8) -> Option<SecondaryChannel>
Trait Implementations§
source§impl<O: Into<EnumSet<SecondaryChannel>>> BitAnd<O> for SecondaryChannel
impl<O: Into<EnumSet<SecondaryChannel>>> BitAnd<O> for SecondaryChannel
source§impl<O: Into<EnumSet<SecondaryChannel>>> BitOr<O> for SecondaryChannel
impl<O: Into<EnumSet<SecondaryChannel>>> BitOr<O> for SecondaryChannel
source§impl<O: Into<EnumSet<SecondaryChannel>>> BitXor<O> for SecondaryChannel
impl<O: Into<EnumSet<SecondaryChannel>>> BitXor<O> for SecondaryChannel
source§impl Clone for SecondaryChannel
impl Clone for SecondaryChannel
source§impl Debug for SecondaryChannel
impl Debug for SecondaryChannel
source§impl Default for SecondaryChannel
impl Default for SecondaryChannel
source§impl<'de> Deserialize<'de> for SecondaryChannel
impl<'de> Deserialize<'de> for SecondaryChannel
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 SecondaryChannel
impl Display for SecondaryChannel
source§impl EnumMessage for SecondaryChannel
impl EnumMessage for SecondaryChannel
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 SecondaryChannel
impl EnumSetTypePrivate for SecondaryChannel
source§const ALL_BITS: Self::Repr = {transmute(0x07): <wifi::SecondaryChannel as enumset::__internal::EnumSetTypePrivate>::Repr}
const ALL_BITS: Self::Repr = {transmute(0x07): <wifi::SecondaryChannel 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<SecondaryChannel>,
ser: S
) -> Result<S::Ok, S::Error>
fn serialize<S: Serializer>(
set: EnumSet<SecondaryChannel>,
ser: S
) -> Result<S::Ok, S::Error>
Serializes the
EnumSet. Read moresource§fn deserialize<'de, D: Deserializer<'de>>(
de: D
) -> Result<EnumSet<SecondaryChannel>, D::Error>
fn deserialize<'de, D: Deserializer<'de>>(
de: D
) -> Result<EnumSet<SecondaryChannel>, D::Error>
Deserializes the
EnumSet.source§impl FromStr for SecondaryChannel
impl FromStr for SecondaryChannel
source§impl IntoEnumIterator for SecondaryChannel
impl IntoEnumIterator for SecondaryChannel
type Iterator = SecondaryChannelIter
fn iter() -> SecondaryChannelIter ⓘ
source§impl Not for SecondaryChannel
impl Not for SecondaryChannel
source§impl PartialEq<EnumSet<SecondaryChannel>> for SecondaryChannel
impl PartialEq<EnumSet<SecondaryChannel>> for SecondaryChannel
source§impl PartialEq<SecondaryChannel> for SecondaryChannel
impl PartialEq<SecondaryChannel> for SecondaryChannel
source§impl PartialOrd<SecondaryChannel> for SecondaryChannel
impl PartialOrd<SecondaryChannel> for SecondaryChannel
source§fn partial_cmp(&self, other: &SecondaryChannel) -> Option<Ordering>
fn partial_cmp(&self, other: &SecondaryChannel) -> 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 SecondaryChannel
impl Serialize for SecondaryChannel
source§impl<O: Into<EnumSet<SecondaryChannel>>> Sub<O> for SecondaryChannel
impl<O: Into<EnumSet<SecondaryChannel>>> Sub<O> for SecondaryChannel
source§impl TryFrom<&str> for SecondaryChannel
impl TryFrom<&str> for SecondaryChannel
source§impl TryFrom<u8> for SecondaryChannel
impl TryFrom<u8> for SecondaryChannel
§type Error = TryFromPrimitiveError<SecondaryChannel>
type Error = TryFromPrimitiveError<SecondaryChannel>
The type returned in the event of a conversion error.