pub struct NotificationEvent {
pub id: u8,
pub label: &'static str,
pub variable: &'static str,
pub idle: bool,
}Expand description
One notification event or state.
Fields§
§id: u8Event id.
label: &'static strLabel.
variable: &'static strThe state variable this event sets (e.g. “Motion sensor status”); empty for one-shot events.
idle: boolWhether the variable returns to idle (event 0) on its own.
Trait Implementations§
Source§impl Clone for NotificationEvent
impl Clone for NotificationEvent
impl Copy for NotificationEvent
Source§impl Debug for NotificationEvent
impl Debug for NotificationEvent
impl Eq for NotificationEvent
Source§impl PartialEq for NotificationEvent
impl PartialEq for NotificationEvent
impl StructuralPartialEq for NotificationEvent
Auto Trait Implementations§
impl Freeze for NotificationEvent
impl RefUnwindSafe for NotificationEvent
impl Send for NotificationEvent
impl Sync for NotificationEvent
impl Unpin for NotificationEvent
impl UnsafeUnpin for NotificationEvent
impl UnwindSafe for NotificationEvent
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