pub struct Reading {
pub ts: SystemTime,
pub value: Value,
}
Expand description
Represents the value of a device at a specific moment.
When a client monitors a device, it receives a stream of readings
as the device gets updated. A reading consists of the value of the
device along with the timestamp. The set of types that a device
can return is defined in the Value
type. The timestamp is given
in UTC.
Fields§
§ts: SystemTime
§value: Value
Trait Implementations§
source§impl PartialEq<Reading> for Reading
impl PartialEq<Reading> for Reading
impl StructuralPartialEq for Reading
Auto Trait Implementations§
impl RefUnwindSafe for Reading
impl Send for Reading
impl Sync for Reading
impl Unpin for Reading
impl UnwindSafe for Reading
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