Enum embedded_svc::wifi::Capability
source · [−]#[repr(u8)]
pub enum Capability {
Client,
AccessPoint,
Mixed,
}
Variants
Client
AccessPoint
Mixed
Trait Implementations
sourceimpl<O: Into<EnumSet<Capability>>> BitAnd<O> for Capability
impl<O: Into<EnumSet<Capability>>> BitAnd<O> for Capability
sourceimpl<O: Into<EnumSet<Capability>>> BitOr<O> for Capability
impl<O: Into<EnumSet<Capability>>> BitOr<O> for Capability
sourceimpl<O: Into<EnumSet<Capability>>> BitXor<O> for Capability
impl<O: Into<EnumSet<Capability>>> BitXor<O> for Capability
sourceimpl Clone for Capability
impl Clone for Capability
sourceimpl Debug for Capability
impl Debug for Capability
sourceimpl<'de> Deserialize<'de> for Capability
impl<'de> Deserialize<'de> for Capability
sourcefn 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
sourceimpl Display for Capability
impl Display for Capability
sourceimpl EnumMessage for Capability
impl EnumMessage for Capability
fn get_message(&self) -> Option<&'static str>
fn get_detailed_message(&self) -> Option<&'static str>
fn get_serializations(&self) -> &'static [&'static str]
sourceimpl EnumSetTypePrivate for Capability
impl EnumSetTypePrivate for Capability
sourcefn enum_into_u32(self) -> u32
fn enum_into_u32(self) -> u32
Converts an enum of this type into its bit position.
sourceunsafe fn enum_from_u32(val: u32) -> Self
unsafe fn enum_from_u32(val: u32) -> Self
Converts a bit position into an enum value.
sourcefn serialize<S: Serializer>(
set: EnumSet<Capability>,
ser: S
) -> Result<S::Ok, S::Error>
fn serialize<S: Serializer>(
set: EnumSet<Capability>,
ser: S
) -> Result<S::Ok, S::Error>
Serializes the EnumSet
. Read more
sourcefn deserialize<'de, D: Deserializer<'de>>(
de: D
) -> Result<EnumSet<Capability>, D::Error>
fn deserialize<'de, D: Deserializer<'de>>(
de: D
) -> Result<EnumSet<Capability>, D::Error>
Deserializes the EnumSet
.
sourceimpl FromStr for Capability
impl FromStr for Capability
type Err = ParseError
type Err = ParseError
The associated error which can be returned from parsing.
sourceimpl IntoEnumIterator for Capability
impl IntoEnumIterator for Capability
type Iterator = CapabilityIter
fn iter() -> CapabilityIterⓘNotable traits for CapabilityIterimpl Iterator for CapabilityIter type Item = Capability;
sourceimpl Not for Capability
impl Not for Capability
sourceimpl PartialEq<Capability> for Capability
impl PartialEq<Capability> for Capability
sourceimpl PartialEq<EnumSet<Capability>> for Capability
impl PartialEq<EnumSet<Capability>> for Capability
sourceimpl PartialOrd<Capability> for Capability
impl PartialOrd<Capability> for Capability
sourcefn partial_cmp(&self, other: &Capability) -> Option<Ordering>
fn partial_cmp(&self, other: &Capability) -> Option<Ordering>
This method returns an ordering between self
and other
values if one exists. Read more
1.0.0 · sourcefn lt(&self, other: &Rhs) -> bool
fn lt(&self, other: &Rhs) -> bool
This method tests less than (for self
and other
) and is used by the <
operator. Read more
1.0.0 · sourcefn 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 more
sourceimpl Serialize for Capability
impl Serialize for Capability
sourceimpl<O: Into<EnumSet<Capability>>> Sub<O> for Capability
impl<O: Into<EnumSet<Capability>>> Sub<O> for Capability
sourceimpl TryFrom<&'_ str> for Capability
impl TryFrom<&'_ str> for Capability
type Error = ParseError
type Error = ParseError
The type returned in the event of a conversion error.
sourceimpl TryFrom<u8> for Capability
impl TryFrom<u8> for Capability
type Error = TryFromPrimitiveError<Self>
type Error = TryFromPrimitiveError<Self>
The type returned in the event of a conversion error.
sourcefn try_from(number: u8) -> Result<Self, TryFromPrimitiveError<Self>>
fn try_from(number: u8) -> Result<Self, TryFromPrimitiveError<Self>>
Performs the conversion.
sourceimpl TryFromPrimitive for Capability
impl TryFromPrimitive for Capability
type Primitive = u8
const NAME: &'static str
fn try_from_primitive(
number: Self::Primitive
) -> Result<Self, TryFromPrimitiveError<Self>>
impl Copy for Capability
impl EnumSetType for Capability
impl Eq for Capability
Auto Trait Implementations
impl RefUnwindSafe for Capability
impl Send for Capability
impl Sync for Capability
impl Unpin for Capability
impl UnwindSafe for Capability
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more