Struct futures_bounded::StreamMap
source · pub struct StreamMap<ID, O> { /* private fields */ }
Expand description
Represents a map of Stream
s.
Each stream must finish within the specified time and the map never outgrows its capacity.
Implementations§
source§impl<ID, O> StreamMap<ID, O>
impl<ID, O> StreamMap<ID, O>
sourcepub fn try_push<F>(
&mut self,
id: ID,
stream: F
) -> Result<(), PushError<BoxStream<'_, O>>>
pub fn try_push<F>( &mut self, id: ID, stream: F ) -> Result<(), PushError<BoxStream<'_, O>>>
Push a stream into the map.
pub fn remove(&mut self, id: ID) -> Option<BoxStream<'static, O>>
pub fn len(&self) -> usize
pub fn is_empty(&self) -> bool
pub fn poll_ready_unpin(&mut self, cx: &mut Context<'_>) -> Poll<()>
pub fn poll_next_unpin( &mut self, cx: &mut Context<'_> ) -> Poll<(ID, Option<Result<O, Timeout>>)>
Auto Trait Implementations§
impl<ID, O> !Freeze for StreamMap<ID, O>
impl<ID, O> !RefUnwindSafe for StreamMap<ID, O>
impl<ID, O> Send for StreamMap<ID, O>where
ID: Send,
impl<ID, O> !Sync for StreamMap<ID, O>
impl<ID, O> Unpin for StreamMap<ID, O>
impl<ID, O> !UnwindSafe for StreamMap<ID, O>
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more