pub struct Snapshot {
pub rows: Vec<RawRow>,
pub source: Option<Source>,
pub state: State,
pub note: Option<String>,
pub seq: u64,
pub updated: Option<Instant>,
pub notifications: u64,
pub coalesced: u64,
pub polls: u64,
pub renewals: u64,
pub why: Option<Why>,
}Expand description
A point’s latest values and how its watch is going.
Fields§
§rows: Vec<RawRow>Each property’s latest raw value, or why the device gave none.
source: Option<Source>Where the values come from; None before the first read.
state: StateHow the watch is going.
note: Option<String>Why the point is polled or not live, as text.
seq: u64The hub’s sequence number at the last change; 0 before any.
updated: Option<Instant>When the values last changed.
notifications: u64COV notifications applied.
coalesced: u64Changes folded into another’s signal.
polls: u64Polls answered.
renewals: u64Renewals the device took.
why: Option<Why>Why the point is polled, or was given up, as its start or a failed
renewal found; a poll’s error, which goes to note,
leaves it. None while subscribed, and before the first start ends.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Snapshot
impl RefUnwindSafe for Snapshot
impl Send for Snapshot
impl Sync for Snapshot
impl Unpin for Snapshot
impl UnsafeUnpin for Snapshot
impl UnwindSafe for Snapshot
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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