pub struct PvState {Show 16 fields
pub connected: bool,
pub value: Value,
pub severity: Severity,
pub status: u16,
pub timestamp: Option<SystemTime>,
pub units: String,
pub precision: Option<i32>,
pub labels: Vec<String>,
pub display_range: Option<(f64, f64)>,
pub control_range: Option<(f64, f64)>,
pub alarm_range: Option<(f64, f64)>,
pub warning_range: Option<(f64, f64)>,
pub writable: bool,
pub writable_known: bool,
pub write_error: Option<String>,
pub error: Option<String>,
}Expand description
Everything known about a PV at one moment.
Fields§
§connected: bool§value: Value§severity: Severity§status: u16§timestamp: Option<SystemTime>§units: String§precision: Option<i32>§labels: Vec<String>Enum state labels.
display_range: Option<(f64, f64)>§control_range: Option<(f64, f64)>§alarm_range: Option<(f64, f64)>Alarm (LOLO, HIHI) and warning (LOW, HIGH) limits.
warning_range: Option<(f64, f64)>§writable: boolWhether a write is expected to be accepted. Only meaningful as a
fact when writable_known; otherwise it is an optimistic guess.
writable_known: boolWhether the server told us writable. PV Access has no per-channel
access rights, so for it this stays false: writes are allowed but may
be refused by the server, and write_error then says so.
write_error: Option<String>Why the last write failed, until one succeeds.
error: Option<String>Why the PV cannot connect, if the backend knows.
Implementations§
Trait Implementations§
impl StructuralPartialEq for PvState
Auto Trait Implementations§
impl Freeze for PvState
impl RefUnwindSafe for PvState
impl Send for PvState
impl Sync for PvState
impl Unpin for PvState
impl UnsafeUnpin for PvState
impl UnwindSafe for PvState
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