#[non_exhaustive]#[repr(u16)]pub enum DeviceCommand {
NoOperation = 0,
OnOff = 1,
OpenClose = 2,
}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 DeviceCommand
impl Clone for DeviceCommand
Source§fn clone(&self) -> DeviceCommand
fn clone(&self) -> DeviceCommand
Returns a duplicate of the value. Read more
1.0.0 · 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 DeviceCommand
impl Debug for DeviceCommand
Source§impl<'de> Deserialize<'de> for DeviceCommand
impl<'de> Deserialize<'de> for DeviceCommand
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 DeviceCommand
impl Display for DeviceCommand
Source§impl Distribution<DeviceCommand> for Standard
impl Distribution<DeviceCommand> for Standard
Source§fn sample<R: Rng + ?Sized>(&self, rng: &mut R) -> DeviceCommand
fn sample<R: Rng + ?Sized>(&self, rng: &mut R) -> DeviceCommand
Generate a random value of
T, using rng as the source of randomness.Source§fn sample_iter<R>(self, rng: R) -> DistIter<Self, R, T>
fn sample_iter<R>(self, rng: R) -> DistIter<Self, R, T>
Create an iterator that generates random values of
T, using rng as
the source of randomness. Read moreSource§impl FromStr for DeviceCommand
impl FromStr for DeviceCommand
Source§impl IntoEnumIterator for DeviceCommand
impl IntoEnumIterator for DeviceCommand
type Iterator = DeviceCommandIter
fn iter() -> DeviceCommandIter ⓘ
Source§impl PartialEq for DeviceCommand
impl PartialEq for DeviceCommand
Source§impl Serialize for DeviceCommand
impl Serialize for DeviceCommand
Source§impl TryFrom<u16> for DeviceCommand
impl TryFrom<u16> for DeviceCommand
impl Eq for DeviceCommand
impl StructuralPartialEq for DeviceCommand
Auto Trait Implementations§
impl Freeze for DeviceCommand
impl RefUnwindSafe for DeviceCommand
impl Send for DeviceCommand
impl Sync for DeviceCommand
impl Unpin for DeviceCommand
impl UnwindSafe for DeviceCommand
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