pub struct AlarmStateWire {
pub tag: String,
pub alarm: AlarmRequest,
pub next_at: Option<SystemTime>,
pub last_at: Option<SystemTime>,
}Expand description
One alarm as the session reports it: its state and what it rang.
Fields§
§tag: String§alarm: AlarmRequest§next_at: Option<SystemTime>§last_at: Option<SystemTime>Implementations§
Source§impl AlarmStateWire
impl AlarmStateWire
Sourcepub fn of(state: &AlarmState) -> Self
pub fn of(state: &AlarmState) -> Self
The state an AlarmState reports.
Sourcepub fn state(&self) -> AlarmState
pub fn state(&self) -> AlarmState
This wire state as an AlarmState.
Trait Implementations§
Source§impl Clone for AlarmStateWire
impl Clone for AlarmStateWire
Source§impl Debug for AlarmStateWire
impl Debug for AlarmStateWire
Source§impl<'de> Deserialize<'de> for AlarmStateWire
impl<'de> Deserialize<'de> for AlarmStateWire
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
impl Eq for AlarmStateWire
Source§impl PartialEq for AlarmStateWire
impl PartialEq for AlarmStateWire
Source§impl Serialize for AlarmStateWire
impl Serialize for AlarmStateWire
impl StructuralPartialEq for AlarmStateWire
Auto Trait Implementations§
impl Forget for AlarmStateWire
impl Freeze for AlarmStateWire
impl Move for AlarmStateWire
impl RefUnwindSafe for AlarmStateWire
impl Send for AlarmStateWire
impl Sync for AlarmStateWire
impl Unpin for AlarmStateWire
impl UnsafeUnpin for AlarmStateWire
impl UnwindSafe for AlarmStateWire
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