Struct futures_bounded::StreamSet
source · pub struct StreamSet<O> { /* private fields */ }
Expand description
Represents a set of Streams.
Each stream must finish within the specified time and the list never outgrows its capacity.
Implementations§
source§impl<O> StreamSet<O>where
O: Send + 'static,
impl<O> StreamSet<O>where
O: Send + 'static,
sourcepub fn try_push<F>(&mut self, stream: F) -> Result<(), BoxStream<'_, O>>
pub fn try_push<F>(&mut self, stream: F) -> Result<(), BoxStream<'_, O>>
Push a stream into the list.
This method adds the given stream to the list. If the length of the list is equal to the capacity, this method returns a error that contains the passed stream. In that case, the stream is not added to the set.
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<Option<Result<O, Timeout>>>
Auto Trait Implementations§
impl<O> !Freeze for StreamSet<O>
impl<O> !RefUnwindSafe for StreamSet<O>
impl<O> Send for StreamSet<O>
impl<O> !Sync for StreamSet<O>
impl<O> Unpin for StreamSet<O>
impl<O> !UnwindSafe for StreamSet<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