pub enum Admission<T, E> {
Join(Vec<T>),
Terminated(Vec<T>, Termination<E>),
}Expand description
What the host decided, under the lock, for an observer that wants to join.
Variants§
Join(Vec<T>)
Deliver these values to the newcomer, then let it join the multicast. Use an empty Vec,
which allocates nothing, when there is nothing to replay.
Terminated(Vec<T>, Termination<E>)
Do not join: deliver these values and then this termination, to the newcomer alone.
Trait Implementations§
Auto Trait Implementations§
impl<T, E> Freeze for Admission<T, E>
impl<T, E> RefUnwindSafe for Admission<T, E>
impl<T, E> Send for Admission<T, E>
impl<T, E> Sync for Admission<T, E>
impl<T, E> Unpin for Admission<T, E>
impl<T, E> UnsafeUnpin for Admission<T, E>
impl<T, E> UnwindSafe for Admission<T, E>
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