pub struct NtScalar {Show 28 fields
pub value: ScalarValue,
pub alarm_severity: i32,
pub alarm_status: i32,
pub alarm_message: String,
pub alarm_low: Option<f64>,
pub alarm_high: Option<f64>,
pub alarm_lolo: Option<f64>,
pub alarm_hihi: Option<f64>,
pub display_low: f64,
pub display_high: f64,
pub display_description: String,
pub display_precision: i32,
pub display_form_index: i32,
pub display_form_choices: Vec<String>,
pub control_low: f64,
pub control_high: f64,
pub control_min_step: f64,
pub units: String,
pub value_alarm_active: bool,
pub value_alarm_low_alarm_limit: f64,
pub value_alarm_low_warning_limit: f64,
pub value_alarm_high_warning_limit: f64,
pub value_alarm_high_alarm_limit: f64,
pub value_alarm_low_alarm_severity: i32,
pub value_alarm_low_warning_severity: i32,
pub value_alarm_high_warning_severity: i32,
pub value_alarm_high_alarm_severity: i32,
pub value_alarm_hysteresis: u8,
}Fields§
§value: ScalarValue§alarm_severity: i32§alarm_status: i32§alarm_message: String§alarm_low: Option<f64>§alarm_high: Option<f64>§alarm_lolo: Option<f64>§alarm_hihi: Option<f64>§display_low: f64§display_high: f64§display_description: String§display_precision: i32§display_form_index: i32§display_form_choices: Vec<String>§control_low: f64§control_high: f64§control_min_step: f64§units: String§value_alarm_active: bool§value_alarm_low_alarm_limit: f64§value_alarm_low_warning_limit: f64§value_alarm_high_warning_limit: f64§value_alarm_high_alarm_limit: f64§value_alarm_low_alarm_severity: i32§value_alarm_low_warning_severity: i32§value_alarm_high_warning_severity: i32§value_alarm_high_alarm_severity: i32§value_alarm_hysteresis: u8Implementations§
Source§impl NtScalar
impl NtScalar
pub fn from_value(value: ScalarValue) -> Self
pub fn with_limits(self, low: f64, high: f64) -> Self
pub fn with_units(self, units: String) -> Self
pub fn with_description(self, description: String) -> Self
pub fn with_precision(self, precision: i32) -> Self
pub fn with_alarm_limits( self, low: Option<f64>, high: Option<f64>, lolo: Option<f64>, hihi: Option<f64>, ) -> Self
pub fn update_alarm_from_value(&mut self)
Trait Implementations§
impl StructuralPartialEq for NtScalar
Auto Trait Implementations§
impl Freeze for NtScalar
impl RefUnwindSafe for NtScalar
impl Send for NtScalar
impl Sync for NtScalar
impl Unpin for NtScalar
impl UnsafeUnpin for NtScalar
impl UnwindSafe for NtScalar
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