Struct streamunordered::StreamSlot[][src]

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

A handle to an vacant stream slot in a StreamUnordered.

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

Methods

impl<'a, S: 'a> StreamSlot<'a, 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.

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 + 'a> Debug for StreamSlot<'a, S>
[src]

Formats the value using the given formatter. Read more

Auto Trait Implementations

impl<'a, S> !Send for StreamSlot<'a, S>

impl<'a, S> !Sync for StreamSlot<'a, S>