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]
impl<'a, S: 'a> StreamSlot<'a, S>
pub fn insert(self, stream: S) -> &'a mut S
[src]
pub fn insert(self, stream: S) -> &'a mut S
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]
pub fn token(&self) -> usize
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]
impl<'a, S: Debug + 'a> Debug for StreamSlot<'a, S>
Auto Trait Implementations
impl<'a, S> !Send for StreamSlot<'a, S>
impl<'a, S> !Send for StreamSlot<'a, S>
impl<'a, S> !Sync for StreamSlot<'a, S>
impl<'a, S> !Sync for StreamSlot<'a, S>