pub struct CovObservation { /* private fields */ }Expand description
A bounded selected sample and its declared optional four-bit Status_Flags.
Specialized Value_Source reports also retain their captured PV and, for
commandable objects, command priority; command time is not a trigger.
Whole-object reports also retain the Table 13-1 values whose changes
trigger a notification (Staging’s Present_Stage).
No delivered observation is represented by the subscription’s outer None;
an observation with absent flags is a distinct successful delivery.
Implementations§
Source§impl CovObservation
impl CovObservation
Sourcepub fn new(
sample: CovSample,
flags: Option<&PropertyValue>,
) -> Result<Self, Error>
pub fn new( sample: CovSample, flags: Option<&PropertyValue>, ) -> Result<Self, Error>
Pair a validated selected sample with absent or canonical present flags. Present flags must be a one-byte BitString with four unused zero low bits.
Sourcepub fn status_flags(&self) -> Option<u8>
pub fn status_flags(&self) -> Option<u8>
The four used status bits, or declared absence at delivery.
Trait Implementations§
Source§impl Clone for CovObservation
impl Clone for CovObservation
Source§impl Debug for CovObservation
impl Debug for CovObservation
impl Eq for CovObservation
Source§impl PartialEq for CovObservation
impl PartialEq for CovObservation
impl StructuralPartialEq for CovObservation
Auto Trait Implementations§
impl Freeze for CovObservation
impl RefUnwindSafe for CovObservation
impl Send for CovObservation
impl Sync for CovObservation
impl Unpin for CovObservation
impl UnsafeUnpin for CovObservation
impl UnwindSafe for CovObservation
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