pub struct StatusTracker { /* private fields */ }Expand description
Turns successive snapshots into reports.
Every poll re-asserts each live session’s state, not only a change: the same session also gets inferred reports from Codex’s hooks and the rollout watcher, and re-asserting the exact state overrides any of them within one poll (a repeat sighting does not bump the registry, so this costs a socket round-trip, not a push). It also keeps an idle session inside the TTL. A thread that leaves the loaded set, or reports a status that says nothing, is ended; one merely unreadable this poll is left alone. Pure, so it is unit-tested without a server.
Implementations§
Trait Implementations§
Source§impl Debug for StatusTracker
impl Debug for StatusTracker
Auto Trait Implementations§
impl Freeze for StatusTracker
impl RefUnwindSafe for StatusTracker
impl Send for StatusTracker
impl Sync for StatusTracker
impl Unpin for StatusTracker
impl UnsafeUnpin for StatusTracker
impl UnwindSafe for StatusTracker
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
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
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