pub struct Unseen {
unseen: HashSet<SessionSlot>,
}Expand description
Which sessions have finished a turn since this view last showed them.
Viewer-relative by nature - whether a completion is unseen depends on who is looking, and two views can disagree about the same slot and both be right - so it is held here rather than on the core.
Fields§
§unseen: HashSet<SessionSlot>Implementations§
Source§impl Unseen
impl Unseen
pub fn new() -> Self
Sourcepub fn mark_completed(&mut self, slot: &SessionSlot)
pub fn mark_completed(&mut self, slot: &SessionSlot)
A turn finished on slot. Marking an already-unseen session is the
same as marking it once.
Sourcepub fn clear(&mut self, slot: &SessionSlot)
pub fn clear(&mut self, slot: &SessionSlot)
This view has shown slot, so nothing about it is unseen.
pub fn is_unseen(&self, slot: &SessionSlot) -> bool
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Unseen
impl RefUnwindSafe for Unseen
impl Send for Unseen
impl Sync for Unseen
impl Unpin for Unseen
impl UnsafeUnpin for Unseen
impl UnwindSafe for Unseen
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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