pub struct AlarmRule {
pub name: String,
pub condition: AlarmCondition,
pub cooldown_ticks: u64,
pub state: AlarmState,
pub last_fired_tick: u64,
}Expand description
An alarm rule with condition and cooldown.
Fields§
§name: String§condition: AlarmCondition§cooldown_ticks: u64Minimum ticks between alarm fires.
state: AlarmStateCurrent state.
last_fired_tick: u64Tick when the alarm last fired (for cooldown tracking).
Implementations§
Source§impl AlarmRule
impl AlarmRule
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for AlarmRule
impl !UnwindSafe for AlarmRule
impl Freeze for AlarmRule
impl Send for AlarmRule
impl Sync for AlarmRule
impl Unpin for AlarmRule
impl UnsafeUnpin for AlarmRule
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