#[non_exhaustive]#[repr(u8)]pub enum DeviceEntityType {
MainApplication = 0,
Bootloader = 1,
Hardware = 2,
Touchpad = 3,
OpticalSensor = 4,
Softdevice = 5,
RfCompanionMcu = 6,
FactoryApplication = 7,
RgbCustomEffect = 8,
MotorDrive = 9,
}Expand description
Represents the type of a device entity.
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.
MainApplication = 0
Bootloader = 1
Hardware = 2
Touchpad = 3
OpticalSensor = 4
Softdevice = 5
RfCompanionMcu = 6
FactoryApplication = 7
RgbCustomEffect = 8
MotorDrive = 9
Trait Implementations§
Source§impl Clone for DeviceEntityType
impl Clone for DeviceEntityType
Source§fn clone(&self) -> DeviceEntityType
fn clone(&self) -> DeviceEntityType
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 moreimpl Copy for DeviceEntityType
Source§impl Debug for DeviceEntityType
impl Debug for DeviceEntityType
impl Eq for DeviceEntityType
Source§impl From<DeviceEntityType> for u8
impl From<DeviceEntityType> for u8
Source§fn from(enum_value: DeviceEntityType) -> Self
fn from(enum_value: DeviceEntityType) -> Self
Converts to this type from the input type.
Source§impl Hash for DeviceEntityType
impl Hash for DeviceEntityType
Source§impl PartialEq for DeviceEntityType
impl PartialEq for DeviceEntityType
Source§fn eq(&self, other: &DeviceEntityType) -> bool
fn eq(&self, other: &DeviceEntityType) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for DeviceEntityType
Source§impl TryFrom<u8> for DeviceEntityType
impl TryFrom<u8> for DeviceEntityType
Source§type Error = TryFromPrimitiveError<DeviceEntityType>
type Error = TryFromPrimitiveError<DeviceEntityType>
The type returned in the event of a conversion error.
Source§impl TryFromPrimitive for DeviceEntityType
impl TryFromPrimitive for DeviceEntityType
const NAME: &'static str = "DeviceEntityType"
type Primitive = u8
type Error = TryFromPrimitiveError<DeviceEntityType>
fn try_from_primitive( number: Self::Primitive, ) -> Result<Self, TryFromPrimitiveError<Self>>
Auto Trait Implementations§
impl Freeze for DeviceEntityType
impl RefUnwindSafe for DeviceEntityType
impl Send for DeviceEntityType
impl Sync for DeviceEntityType
impl Unpin for DeviceEntityType
impl UnsafeUnpin for DeviceEntityType
impl UnwindSafe for DeviceEntityType
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