#[repr(u8)]pub enum ExpressedState {
Normal = 0,
Smokealarm = 1,
Coalarm = 2,
Batteryalert = 3,
Testing = 4,
Hardwarefault = 5,
Endofservice = 6,
Interconnectsmoke = 7,
Interconnectco = 8,
}Variants§
Normal = 0
Nominal state, the device is not alarming
Smokealarm = 1
Smoke Alarm state
Coalarm = 2
CO Alarm state
Batteryalert = 3
Battery Alert State
Testing = 4
Test in Progress
Hardwarefault = 5
Hardware Fault Alert State
Endofservice = 6
End of Service Alert State
Interconnectsmoke = 7
Interconnected Smoke Alarm State
Interconnectco = 8
Interconnected CO Alarm State
Implementations§
Trait Implementations§
Source§impl Clone for ExpressedState
impl Clone for ExpressedState
Source§fn clone(&self) -> ExpressedState
fn clone(&self) -> ExpressedState
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 ExpressedState
impl Debug for ExpressedState
Source§impl<'de> Deserialize<'de> for ExpressedState
impl<'de> Deserialize<'de> for ExpressedState
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 From<ExpressedState> for u8
impl From<ExpressedState> for u8
Source§fn from(val: ExpressedState) -> Self
fn from(val: ExpressedState) -> Self
Converts to this type from the input type.
Source§impl PartialEq for ExpressedState
impl PartialEq for ExpressedState
Source§impl Serialize for ExpressedState
impl Serialize for ExpressedState
impl Copy for ExpressedState
impl Eq for ExpressedState
impl StructuralPartialEq for ExpressedState
Auto Trait Implementations§
impl Freeze for ExpressedState
impl RefUnwindSafe for ExpressedState
impl Send for ExpressedState
impl Sync for ExpressedState
impl Unpin for ExpressedState
impl UnwindSafe for ExpressedState
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