Struct futures::stream::SkipWhile [−][src]
A stream combinator which skips elements of a stream while a predicate holds.
This structure is produced by the Stream::skip_while
method.
Methods
impl<St, Fut, F> SkipWhile<St, Fut, F> where
F: FnMut(&<St as Stream>::Item) -> Fut,
Fut: Future<Output = bool>,
St: Stream,
[src]
[−]
impl<St, Fut, F> SkipWhile<St, Fut, F> where
F: FnMut(&<St as Stream>::Item) -> Fut,
Fut: Future<Output = bool>,
St: Stream,
ⓘImportant traits for &'a mut Ipub fn get_ref(&self) -> &St
[src]
[−]
ⓘImportant traits for &'a mut I
pub fn get_ref(&self) -> &St
Acquires a reference to the underlying stream that this combinator is pulling from.
ⓘImportant traits for &'a mut Ipub fn get_mut(&mut self) -> &mut St
[src]
[−]
ⓘImportant traits for &'a mut I
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, Fut, F> Unpin for SkipWhile<St, Fut, F> where
Fut: Unpin,
St: Unpin + Stream,
[src]
impl<St, Fut, F> Unpin for SkipWhile<St, Fut, F> where
Fut: Unpin,
St: Unpin + Stream,
impl<St, Fut, F> Debug for SkipWhile<St, Fut, F> where
F: Debug,
Fut: Debug,
St: Debug + Stream,
<St as Stream>::Item: Debug,
[src]
[+]
impl<St, Fut, F> Debug for SkipWhile<St, Fut, F> where
F: Debug,
Fut: Debug,
St: Debug + Stream,
<St as Stream>::Item: Debug,
impl<St, Fut, F> Stream for SkipWhile<St, Fut, F> where
F: FnMut(&<St as Stream>::Item) -> Fut,
Fut: Future<Output = bool>,
St: Stream,
[src]
[+]
impl<St, Fut, F> Stream for SkipWhile<St, Fut, F> where
F: FnMut(&<St as Stream>::Item) -> Fut,
Fut: Future<Output = bool>,
St: Stream,