Struct stream_cancel::TakeUntilIf
source · pub struct TakeUntilIf<S, F> { /* private fields */ }
Expand description
A stream combinator which takes elements from a stream until a future resolves.
This structure is produced by the StreamExt::take_until_if
method.
Implementations§
source§impl<S, F> TakeUntilIf<S, F>
impl<S, F> TakeUntilIf<S, F>
sourcepub fn into_inner(self) -> S
pub fn into_inner(self) -> S
Consumes this combinator, returning the underlying stream.
Trait Implementations§
source§impl<S: Clone, F: Clone> Clone for TakeUntilIf<S, F>
impl<S: Clone, F: Clone> Clone for TakeUntilIf<S, F>
source§fn clone(&self) -> TakeUntilIf<S, F>
fn clone(&self) -> TakeUntilIf<S, F>
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl<S, F> Stream for TakeUntilIf<S, F>
impl<S, F> Stream for TakeUntilIf<S, F>
impl<'pin, S, F> Unpin for TakeUntilIf<S, F>where
__TakeUntilIf<'pin, S, F>: Unpin,
Auto Trait Implementations§
impl<S, F> RefUnwindSafe for TakeUntilIf<S, F>where
F: RefUnwindSafe,
S: RefUnwindSafe,
impl<S, F> Send for TakeUntilIf<S, F>
impl<S, F> Sync for TakeUntilIf<S, F>
impl<S, F> UnwindSafe for TakeUntilIf<S, F>where
F: UnwindSafe,
S: UnwindSafe,
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
source§impl<S> StreamExt for Swhere
S: Stream,
impl<S> StreamExt for Swhere
S: Stream,
source§fn take_until_if<U>(self, until: U) -> TakeUntilIf<Self, U>
fn take_until_if<U>(self, until: U) -> TakeUntilIf<Self, U>
Take elements from this stream until the given future resolves. Read more