[−][src]Struct futures_util::try_stream::TrySkipWhile
#[must_use = "streams do nothing unless polled"]pub struct TrySkipWhile<St, Fut, F> where
St: TryStream, { /* fields omitted */ }
A stream combinator which skips elements of a stream while a predicate holds.
This structure is produced by the
TryStreamExt::try_skip_while
method.
Methods
impl<St, Fut, F> TrySkipWhile<St, Fut, F> where
St: TryStream,
F: FnMut(&St::Ok) -> Fut,
Fut: TryFuture<Ok = bool, Error = St::Error>,
[src]
impl<St, Fut, F> TrySkipWhile<St, Fut, F> where
St: TryStream,
F: FnMut(&St::Ok) -> Fut,
Fut: TryFuture<Ok = bool, Error = St::Error>,
ⓘ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 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 TrySkipWhile<St, Fut, F> where
St: TryStream,
St::Ok: Debug,
[src]
impl<St: Debug, Fut: Debug, F: Debug> Debug for TrySkipWhile<St, Fut, F> where
St: TryStream,
St::Ok: Debug,
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl<St: Unpin + TryStream, Fut: Unpin, F> Unpin for TrySkipWhile<St, Fut, F>
[src]
impl<St: Unpin + TryStream, Fut: Unpin, F> Unpin for TrySkipWhile<St, Fut, F>
impl<St, Fut, F> Stream for TrySkipWhile<St, Fut, F> where
St: TryStream,
F: FnMut(&St::Ok) -> Fut,
Fut: TryFuture<Ok = bool, Error = St::Error>,
[src]
impl<St, Fut, F> Stream for TrySkipWhile<St, Fut, F> where
St: TryStream,
F: FnMut(&St::Ok) -> Fut,
Fut: TryFuture<Ok = bool, Error = St::Error>,
type Item = Result<St::Ok, St::Error>
Values yielded by the stream.
fn poll_next(self: PinMut<Self>, cx: &mut Context) -> Poll<Option<Self::Item>>
[src]
fn poll_next(self: PinMut<Self>, cx: &mut Context) -> Poll<Option<Self::Item>>
Attempt to pull out the next value of this stream, registering the current task for wakeup if the value is not yet available, and returning None
if the stream is exhausted. Read more