Enum houseflow_types::DeviceCommand [−][src]
#[repr(u16)] #[non_exhaustive] pub enum DeviceCommand { NoOperation, OnOff, OpenClose, }
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
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
Generate a random value of T
, using rng
as the source of randomness.
Create an iterator that generates random values of T
, using rng
as
the source of randomness. Read more
type Err = ParseError
type Err = ParseError
The associated error which can be returned from parsing.
type Iterator = DeviceCommandIter
fn iter() -> DeviceCommandIterⓘNotable traits for DeviceCommandIter
impl Iterator for DeviceCommandIter type Item = DeviceCommand;
Auto Trait Implementations
impl RefUnwindSafe for DeviceCommand
impl Send for DeviceCommand
impl Sync for DeviceCommand
impl Unpin for DeviceCommand
impl UnwindSafe for DeviceCommand
Blanket Implementations
Mutably borrows from an owned value. Read more
pub fn vzip(self) -> V