pub enum Observation {
Subscribed {
last: Option<Last>,
listened: Duration,
complete: bool,
},
Got {
reply: Option<Reply>,
clock: ClockTrust,
},
Archived,
}Expand description
One observation of one member, as a reader made it.
Variants§
Subscribed
A subscription (§2.5): its last delivery of the member, how long it
has listened since it was declared, and whether it lost deliveries
(complete is false when it did).
Got
A GET to the owner (§2.6): its reply for the member, or None when
none came within the timeout, and the reader’s trust in its clock
against the reply’s stamp.
Archived
An archive’s answer: last-known, never current (§2.8).
Implementations§
Source§impl Observation
impl Observation
Sourcepub fn of_entry(complete: bool, entry: Entry, clock: ClockTrust) -> Observation
pub fn of_entry(complete: bool, entry: Entry, clock: ClockTrust) -> Observation
A snapshot’s entry of one member as a GET’s observation (v2 §2.6):
an entry is judged as a reply, its confirmation’s time as the stamp,
under the reader’s trust in the owner’s clock, which built the
snapshot. A member a complete snapshot omits is deleted, by core
§4.2’s omission rule, and one an incomplete snapshot omits is
silent.
Trait Implementations§
Source§impl Clone for Observation
impl Clone for Observation
impl Copy for Observation
Source§impl Debug for Observation
impl Debug for Observation
impl Eq for Observation
Source§impl PartialEq for Observation
impl PartialEq for Observation
impl StructuralPartialEq for Observation
Auto Trait Implementations§
impl Forget for Observation
impl Freeze for Observation
impl Move for Observation
impl RefUnwindSafe for Observation
impl Send for Observation
impl Sync for Observation
impl Unpin for Observation
impl UnsafeUnpin for Observation
impl UnwindSafe for Observation
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more