pub struct Tick<R = f32, C = bool> {
pub reading: R,
pub reaction: Reaction<C>,
}Expand description
One reading a node took, and what its policy decided about it.
Fields§
§reading: RThe reading, as the sensor returned it and the node published it.
reaction: Reaction<C>What the policy decided: the command applied, if any, and any alert.
Trait Implementations§
impl<R: PartialEq, C: PartialEq> StructuralPartialEq for Tick<R, C>
Auto Trait Implementations§
impl<R, C> Freeze for Tick<R, C>
impl<R, C> RefUnwindSafe for Tick<R, C>where
R: RefUnwindSafe,
C: RefUnwindSafe,
impl<R, C> Send for Tick<R, C>
impl<R, C> Sync for Tick<R, C>
impl<R, C> Unpin for Tick<R, C>
impl<R, C> UnsafeUnpin for Tick<R, C>where
R: UnsafeUnpin,
C: UnsafeUnpin,
impl<R, C> UnwindSafe for Tick<R, C>where
R: UnwindSafe,
C: UnwindSafe,
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