Struct omnisensor::threshold::ThresholdConfig
source · [−]pub struct ThresholdConfig {
kind: ThresholdBoundType,
severity: ThresholdSeverity,
hysteresis: f64,
value: f64,
}
Expand description
Internal representation of a threshold’s config data retrieved from dbus.
Fields
kind: ThresholdBoundType
severity: ThresholdSeverity
hysteresis: f64
How much the reading needs to recede from value
after passing it in order to
reset the alarm status.
value: f64
Implementations
Trait Implementations
sourceimpl Clone for ThresholdConfig
impl Clone for ThresholdConfig
sourcefn clone(&self) -> ThresholdConfig
fn clone(&self) -> ThresholdConfig
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Debug for ThresholdConfig
impl Debug for ThresholdConfig
impl Copy for ThresholdConfig
Auto Trait Implementations
impl RefUnwindSafe for ThresholdConfig
impl Send for ThresholdConfig
impl Sync for ThresholdConfig
impl Unpin for ThresholdConfig
impl UnwindSafe for ThresholdConfig
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more