Struct futures_util::stream::Filter [−][src]
A stream combinator used to filter the results of a stream and only yield some values.
This structure is produced by the Stream::filter
method.
Methods
impl<St, Fut, F> Filter<St, Fut, F> where
St: Stream,
F: FnMut(&St::Item) -> Fut,
Fut: Future<Output = bool>,
[src]
[−]
impl<St, Fut, F> Filter<St, Fut, F> where
St: Stream,
F: FnMut(&St::Item) -> Fut,
Fut: Future<Output = bool>,
ⓘImportant traits for &'a mut Wpub fn get_ref(&self) -> &St
[src]
[−]
ⓘImportant traits for &'a mut W
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]
[−]
ⓘImportant traits for &'a mut W
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 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: Debug, Fut: Debug, F: Debug> Debug for Filter<St, Fut, F> where
St: Stream,
F: FnMut(&St::Item) -> Fut,
Fut: Future<Output = bool>,
St::Item: Debug,
[src]
[+]
impl<St: Debug, Fut: Debug, F: Debug> Debug for Filter<St, Fut, F> where
St: Stream,
F: FnMut(&St::Item) -> Fut,
Fut: Future<Output = bool>,
St::Item: Debug,
impl<St, Fut, F> Unpin for Filter<St, Fut, F> where
St: Stream + Unpin,
F: FnMut(&St::Item) -> Fut,
Fut: Future<Output = bool> + Unpin,
[src]
impl<St, Fut, F> Unpin for Filter<St, Fut, F> where
St: Stream + Unpin,
F: FnMut(&St::Item) -> Fut,
Fut: Future<Output = bool> + Unpin,
impl<St, Fut, F> Stream for Filter<St, Fut, F> where
St: Stream,
F: FnMut(&St::Item) -> Fut,
Fut: Future<Output = bool>,
[src]
[+]
impl<St, Fut, F> Stream for Filter<St, Fut, F> where
St: Stream,
F: FnMut(&St::Item) -> Fut,
Fut: Future<Output = bool>,