[−][src]Struct futures_util::stream::Buffered
An adaptor for a stream of futures to execute the futures concurrently, if possible.
This adaptor will buffer up a list of pending futures, and then return their
results in the order that they were pulled out of the original stream. This
is created by the Stream::buffered
method.
Methods
impl<St> Buffered<St> where
St: Stream,
St::Item: Future,
[src]
[−]
impl<St> Buffered<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 mutable pinned 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 Buffered<St> where
St: Stream + Unpin,
St::Item: Future,
[src]
impl<St> Unpin for Buffered<St> where
St: Stream + Unpin,
St::Item: Future,
impl<St> Debug for Buffered<St> where
St: Stream + Debug,
St::Item: Future,
[src]
[+]
impl<St> Debug for Buffered<St> where
St: Stream + Debug,
St::Item: Future,
impl<St> Stream for Buffered<St> where
St: Stream,
St::Item: Future,
[src]
[+]
impl<St> Stream for Buffered<St> where
St: Stream,
St::Item: Future,
impl<S> Sink for Buffered<S> where
S: Stream + Sink,
S::Item: Future,
[src]
[+]
impl<S> Sink for Buffered<S> where
S: Stream + Sink,
S::Item: Future,