[−][src]Struct futures_util::stream::BufferUnordered
An adaptor for a stream of futures to execute the futures concurrently, if possible, delivering results as they become available.
This adaptor will buffer up a list of pending futures, and then return their
results in the order that they complete. This is created by the
Stream::buffer_unordered
method.
Methods
impl<St> BufferUnordered<St> where
St: Stream,
St::Item: Future,
[src]
[−]
impl<St> BufferUnordered<St> where
St: Stream,
St::Item: Future,
ⓘImportant traits for &'a mut Wpub fn get_ref(&self) -> &St
[src]
[−]
pub fn get_ref(&self) -> &St
Acquires a reference to the underlying stream that this combinator is pulling from.
ⓘImportant traits for &'a mut Wpub fn get_mut(&mut self) -> &mut St
[src]
[−]
pub fn get_mut(&mut self) -> &mut St
Acquires a mutable reference to the underlying stream that this combinator is pulling from.
Note that care must be taken to avoid tampering with the state of the stream which may otherwise confuse this combinator.
pub fn get_pin_mut<'a>(self: PinMut<'a, Self>) -> PinMut<'a, St>
[src]
[−]
pub fn get_pin_mut<'a>(self: PinMut<'a, Self>) -> PinMut<'a, St>
Acquires a pinned mutable reference to the underlying stream that this combinator is pulling from.
Note that care must be taken to avoid tampering with the state of the stream which may otherwise confuse this combinator.
pub fn into_inner(self) -> St
[src]
[−]
pub fn into_inner(self) -> St
Consumes this combinator, returning the underlying stream.
Note that this may discard intermediate state of this combinator, so care should be taken to avoid losing resources when this is called.
Trait Implementations
impl<St> Unpin for BufferUnordered<St> where
St: Stream + Unpin,
St::Item: Future,
[src]
impl<St> Unpin for BufferUnordered<St> where
St: Stream + Unpin,
St::Item: Future,
impl<St> Debug for BufferUnordered<St> where
St: Stream + Debug,
St::Item: Future,
[src]
[+]
impl<St> Debug for BufferUnordered<St> where
St: Stream + Debug,
St::Item: Future,
impl<St> Stream for BufferUnordered<St> where
St: Stream,
St::Item: Future,
[src]
[+]
impl<St> Stream for BufferUnordered<St> where
St: Stream,
St::Item: Future,
impl<S> Sink for BufferUnordered<S> where
S: Stream + Sink,
S::Item: Future,
[src]
[+]
impl<S> Sink for BufferUnordered<S> where
S: Stream + Sink,
S::Item: Future,