pub struct AttrRead<T> {
pub value: Option<T>,
pub w_value: Option<T>,
pub quality: AttrQuality,
pub time: SystemTime,
}Expand description
Represent the reading for a single attribute.
Fields§
§value: Option<T>The read value of the attribute, if any. Absent if quality is Invalid or if the attribute is not readable.
w_value: Option<T>The write value of the attribute, if any. Absent if quality is Invalid or if the attribute is not writable.
quality: AttrQualityThe quality of the value.
time: SystemTimeThe timestamp of the value.
Implementations§
Source§impl<T> AttrRead<T>
impl<T> AttrRead<T>
pub fn new(value: T) -> Self
pub fn with_quality(self, quality: AttrQuality) -> Self
pub fn with_time(self, time: SystemTime) -> Self
Trait Implementations§
impl<T: Eq> Eq for AttrRead<T>
impl<T: PartialEq> StructuralPartialEq for AttrRead<T>
Auto Trait Implementations§
impl<T> Freeze for AttrRead<T>
impl<T> RefUnwindSafe for AttrRead<T>where
Option<T>: RefUnwindSafe,
impl<T> Send for AttrRead<T>
impl<T> Sync for AttrRead<T>
impl<T> Unpin for AttrRead<T>
impl<T> UnsafeUnpin for AttrRead<T>where
Option<T>: UnsafeUnpin,
impl<T> UnwindSafe for AttrRead<T>where
Option<T>: UnwindSafe,
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