pub struct LiveState {
pub unseen: Unseen,
pub composer: Composer,
attached: HashMap<SessionSlot, usize>,
seen_failed: HashMap<SessionSlot, SystemTime>,
}Expand description
What the stream has said, as one render reads it. A render takes this
rather than the lock: the guard is not Send, and a handler that held
it across its own awaits could not be one.
Fields§
§unseen: Unseen§composer: Composer§attached: HashMap<SessionSlot, usize>The seats a page is open on, by how many connections are showing them, and when each seat was last shown: together these answer whether a failure on it is the reader’s to see, which the home read filters rows with.
seen_failed: HashMap<SessionSlot, SystemTime>Implementations§
Source§impl LiveState
impl LiveState
Sourcepub fn failed_mark(
&self,
slot: &SessionSlot,
at: SystemTime,
) -> Option<SystemTime>
pub fn failed_mark( &self, slot: &SessionSlot, at: SystemTime, ) -> Option<SystemTime>
The failure instant the rail should draw for slot, or None
when there is no failure to mark: the seat is being shown (some
connection is watching it fail), or it has been shown since the
failure landed.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for LiveState
impl RefUnwindSafe for LiveState
impl Send for LiveState
impl Sync for LiveState
impl Unpin for LiveState
impl UnsafeUnpin for LiveState
impl UnwindSafe for LiveState
Blanket Implementations§
§impl<T> AnySync for T
impl<T> AnySync for T
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
impl<S, T> Duplex<S> for Twhere
T: FromSample<S> + ToSample<S>,
§impl<S> FromSample<S> for S
impl<S> FromSample<S> for S
fn from_sample_(s: S) -> S
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> 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