pub struct Window {
pub heard: BTreeMap<String, Vec<Duration>>,
pub listened: Duration,
pub lossless: bool,
pub present: bool,
}Expand description
A subscription window over a stream or an event, as a population reading (§2.7). It is complete — it heard every member live at its end — when it lasted at least one liveness span, lost no delivery, and the owner was present throughout.
Fields§
§heard: BTreeMap<String, Vec<Duration>>The instants each member was heard, on one clock (the reader’s receive clock), from any origin. An event’s member is its key without its last chunk, its occurrence chunk (core §2.7).
listened: DurationHow long the window listened, counted from when its subscription is taken to have reached the owner: its declaration plus the reader’s reply timeout (0.25).
lossless: boolWhether it is shown to have lost no delivery: lossless’s answer
(0.25).
present: boolWhether the owner was present, an instance token of its held, from the window’s start until one lease after its end (0.25): false when it joined, left or re-minted, or a path to it failed.
Trait Implementations§
impl Eq for Window
impl StructuralPartialEq for Window
Auto Trait Implementations§
impl Forget for Window
impl Freeze for Window
impl Move for Window
impl RefUnwindSafe for Window
impl Send for Window
impl Sync for Window
impl Unpin for Window
impl UnsafeUnpin for Windowwhere
*const LeafNode<String, Vec<Duration>> is !null: UnsafeUnpin,
PhantomData<(Owned, LeafOrInternal)>: UnsafeUnpin,
PhantomData<Box<(String, Vec<Duration>)>>: UnsafeUnpin,
impl UnwindSafe for Window
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