pub struct Reaction {
pub actuator: Option<bool>,
pub alert: Option<Alert>,
}Expand description
The outcome of evaluating one reading against a profile’s control policy.
Fields§
§actuator: Option<bool>The actuator setting this reading calls for, if the profile drives one.
Some(true) switches the output on, Some(false) switches it off, and
None means the profile observes without driving an output.
alert: Option<Alert>An alert, if the reading crossed a profile threshold; None otherwise.
Trait Implementations§
impl Copy for Reaction
impl StructuralPartialEq for Reaction
Auto Trait Implementations§
impl Freeze for Reaction
impl RefUnwindSafe for Reaction
impl Send for Reaction
impl Sync for Reaction
impl Unpin for Reaction
impl UnsafeUnpin for Reaction
impl UnwindSafe for Reaction
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