Struct streamunordered::StreamEntry[][src]

pub struct StreamEntry<'a, S> { /* fields omitted */ }

A handle to an vacant stream slot in a StreamUnordered.

StreamEntry allows constructing streams that hold the token that they will be assigned.

Implementations

impl<'a, S: 'a> StreamEntry<'a, S>[src]

pub fn insert(mut self: Self, stream: S)[src]

Insert a stream in the slot, and return a mutable reference to the value.

To get the token associated with the stream, use key prior to calling insert.

pub fn token(&self) -> usize[src]

Return the token associated with this slot.

A stream stored in this slot will be associated with this token.

Trait Implementations

impl<'a, S: Debug> Debug for StreamEntry<'a, S>[src]

impl<'a, S: 'a> Drop for StreamEntry<'a, S>[src]

Auto Trait Implementations

impl<'a, S> !RefUnwindSafe for StreamEntry<'a, S>[src]

impl<'a, S> Send for StreamEntry<'a, S> where
    S: Send
[src]

impl<'a, S> Sync for StreamEntry<'a, S> where
    S: Sync
[src]

impl<'a, S> Unpin for StreamEntry<'a, S>[src]

impl<'a, S> !UnwindSafe for StreamEntry<'a, S>[src]

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.