Skip to main content

Admission

Enum Admission 

Source
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§

Source§

impl<T, E> Debug for Admission<T, E>
where Vec<T>: Debug, Termination<E>: Debug,

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more

Auto Trait Implementations§

§

impl<T, E> Freeze for Admission<T, E>
where Vec<T>: Freeze, Termination<E>: Freeze,

§

impl<T, E> RefUnwindSafe for Admission<T, E>

§

impl<T, E> Send for Admission<T, E>
where Vec<T>: Send, Termination<E>: Send,

§

impl<T, E> Sync for Admission<T, E>
where Vec<T>: Sync, Termination<E>: Sync,

§

impl<T, E> Unpin for Admission<T, E>
where Vec<T>: Unpin, Termination<E>: Unpin,

§

impl<T, E> UnsafeUnpin for Admission<T, E>

§

impl<T, E> UnwindSafe for Admission<T, E>

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> MaybeSend for T
where T: Send,

Source§

impl<T> MaybeSync for T
where T: Sync,

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.