pub enum Event<'a> {
Start,
Arrival {
member: &'a str,
expired: bool,
},
Owner(OwnerState),
MemberSeen(&'a str),
MemberGone(&'a str),
Tick,
}Expand description
What a reader hands its tracker, at an instant (§2.5).
Variants§
Start
The subscription declared: its start.
Arrival
A sample of member (its resource chunks, or its whole key, as the
reader names members) that counts as one by §2.5: a put on a
concrete key. An expired one (§2.6) is no arrival.
Owner(OwnerState)
The owner’s token as the reader now observes it.
MemberSeen(&'a str)
A member token of member seen (core §8.1): heard declared, heard
withdrawn, or shown by a read. On a template that declares epoch,
a known member is waited for from the first (§2.5, text 0.2,
F-261).
MemberGone(&'a str)
A complete read shows no member token of member (core §8.1). On a
template that declares epoch, it ends a member only after a token
of it was seen (text 0.2, F-261).
Tick
An instant the reader judges at: its timer.
Trait Implementations§
impl<'a> Copy for Event<'a>
impl<'a> Eq for Event<'a>
impl<'a> StructuralPartialEq for Event<'a>
Auto Trait Implementations§
impl<'a> Forget for Event<'a>
impl<'a> Freeze for Event<'a>
impl<'a> Move for Event<'a>
impl<'a> RefUnwindSafe for Event<'a>
impl<'a> Send for Event<'a>
impl<'a> Sync for Event<'a>
impl<'a> Unpin for Event<'a>
impl<'a> UnsafeUnpin for Event<'a>where
&'a str: UnsafeUnpin,
impl<'a> UnwindSafe for Event<'a>where
&'a str: 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
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> ⓘ
Converts
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> ⓘ
Converts
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