#[non_exhaustive]#[repr(u8)]pub enum WirelessDeviceStatus {
Unknown = 0,
Reconnection = 1,
}Expand description
Represents a device status as reported in
WirelessDeviceStatusBroadcast::status.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Trait Implementations§
Source§impl Clone for WirelessDeviceStatus
impl Clone for WirelessDeviceStatus
Source§fn clone(&self) -> WirelessDeviceStatus
fn clone(&self) -> WirelessDeviceStatus
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for WirelessDeviceStatus
impl Debug for WirelessDeviceStatus
Source§impl From<WirelessDeviceStatus> for u8
impl From<WirelessDeviceStatus> for u8
Source§fn from(enum_value: WirelessDeviceStatus) -> Self
fn from(enum_value: WirelessDeviceStatus) -> Self
Converts to this type from the input type.
Source§impl Hash for WirelessDeviceStatus
impl Hash for WirelessDeviceStatus
Source§impl PartialEq for WirelessDeviceStatus
impl PartialEq for WirelessDeviceStatus
Source§fn eq(&self, other: &WirelessDeviceStatus) -> bool
fn eq(&self, other: &WirelessDeviceStatus) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl TryFrom<u8> for WirelessDeviceStatus
impl TryFrom<u8> for WirelessDeviceStatus
Source§type Error = TryFromPrimitiveError<WirelessDeviceStatus>
type Error = TryFromPrimitiveError<WirelessDeviceStatus>
The type returned in the event of a conversion error.
Source§impl TryFromPrimitive for WirelessDeviceStatus
impl TryFromPrimitive for WirelessDeviceStatus
const NAME: &'static str = "WirelessDeviceStatus"
type Primitive = u8
type Error = TryFromPrimitiveError<WirelessDeviceStatus>
fn try_from_primitive( number: Self::Primitive, ) -> Result<Self, TryFromPrimitiveError<Self>>
impl Copy for WirelessDeviceStatus
impl Eq for WirelessDeviceStatus
impl StructuralPartialEq for WirelessDeviceStatus
Auto Trait Implementations§
impl Freeze for WirelessDeviceStatus
impl RefUnwindSafe for WirelessDeviceStatus
impl Send for WirelessDeviceStatus
impl Sync for WirelessDeviceStatus
impl Unpin for WirelessDeviceStatus
impl UnsafeUnpin for WirelessDeviceStatus
impl UnwindSafe for WirelessDeviceStatus
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