Struct streamunordered::StreamEntry [−][src]
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]
S: Send,
impl<'a, S> Sync for StreamEntry<'a, S> where
S: Sync,
[src]
S: Sync,
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]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,