pub struct SensorPolicy {
pub stale_ms: u64,
pub hot_f: f32,
pub cold_f: f32,
pub humid_pct: f32,
pub dry_pct: f32,
}Expand description
Thresholds for sensor policy decisions.
Fields§
§stale_ms: u64§hot_f: f32§cold_f: f32§humid_pct: f32§dry_pct: f32Implementations§
Source§impl SensorPolicy
impl SensorPolicy
pub fn evaluate(&self, ctx: PolicyContext<'_>) -> PolicyDecision
Trait Implementations§
Auto Trait Implementations§
impl Freeze for SensorPolicy
impl RefUnwindSafe for SensorPolicy
impl Send for SensorPolicy
impl Sync for SensorPolicy
impl Unpin for SensorPolicy
impl UnsafeUnpin for SensorPolicy
impl UnwindSafe for SensorPolicy
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