pub struct FullSensorRecord {Show 13 fields
pub analog_data_format: Option<DataFormat>,
pub linearization: Linearization,
pub m: i16,
pub tolerance: u8,
pub b: i16,
pub accuracy: u16,
pub accuracy_exponent: u8,
pub direction: Direction,
pub result_exponent: i8,
pub b_exponent: i8,
pub positive_going_threshold_hysteresis_value: Option<NonZeroU8>,
pub negative_going_threshold_hysteresis_value: Option<NonZeroU8>,
pub oem_data: u8,
/* private fields */
}Fields§
§analog_data_format: Option<DataFormat>§linearization: Linearization§m: i16§tolerance: u8§b: i16§accuracy: u16§accuracy_exponent: u8§direction: Direction§result_exponent: i8§b_exponent: i8§positive_going_threshold_hysteresis_value: Option<NonZeroU8>§negative_going_threshold_hysteresis_value: Option<NonZeroU8>§oem_data: u8Implementations§
source§impl FullSensorRecord
impl FullSensorRecord
pub fn parse(record_data: &[u8]) -> Result<Self, ParseFullSensorRecordError>
pub fn threshold(&self, kind: ThresholdKind) -> Threshold
pub fn display_reading(&self, value: u8) -> Option<String>
pub fn nominal_value(&self) -> Option<Value>
pub fn normal_max(&self) -> Option<Value>
pub fn normal_min(&self) -> Option<Value>
pub fn max_reading(&self) -> Option<Value>
pub fn min_reading(&self) -> Option<Value>
pub fn positive_going_hysteresis(&self) -> Option<Value>
pub fn upper_non_recoverable_threshold(&self) -> Option<Value>
pub fn upper_critical_threshold(&self) -> Option<Value>
pub fn upper_non_critical_threshold(&self) -> Option<Value>
pub fn lower_non_recoverable_threshold(&self) -> Option<Value>
pub fn lower_critical_threshold(&self) -> Option<Value>
pub fn lower_non_critical_threshold(&self) -> Option<Value>
pub fn negative_going_threshold_hysteresis(&self) -> Option<Value>
Trait Implementations§
source§impl Clone for FullSensorRecord
impl Clone for FullSensorRecord
source§fn clone(&self) -> FullSensorRecord
fn clone(&self) -> FullSensorRecord
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresource§impl Debug for FullSensorRecord
impl Debug for FullSensorRecord
source§impl SensorRecord for FullSensorRecord
impl SensorRecord for FullSensorRecord
Auto Trait Implementations§
impl RefUnwindSafe for FullSensorRecord
impl Send for FullSensorRecord
impl Sync for FullSensorRecord
impl Unpin for FullSensorRecord
impl UnwindSafe for FullSensorRecord
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