Struct ordered_stream::Then
source · [−]pub struct Then<S, F, Fut> where
S: OrderedStream, { /* private fields */ }
Expand description
A stream for the then
function.
Trait Implementations
sourceimpl<S: Debug, F: Debug, Fut: Debug> Debug for Then<S, F, Fut> where
S: OrderedStream,
S::Ordering: Debug,
impl<S: Debug, F: Debug, Fut: Debug> Debug for Then<S, F, Fut> where
S: OrderedStream,
S::Ordering: Debug,
sourceimpl<S, F, Fut> OrderedStream for Then<S, F, Fut> where
S: OrderedStream,
F: FnMut(S::Data) -> Fut,
Fut: Future,
impl<S, F, Fut> OrderedStream for Then<S, F, Fut> where
S: OrderedStream,
F: FnMut(S::Data) -> Fut,
Fut: Future,
type Ordering = <S as OrderedStream>::Ordering
type Ordering = <S as OrderedStream>::Ordering
The type ordered by this stream. Read more
sourcefn poll_next_before(
self: Pin<&mut Self>,
cx: &mut Context<'_>,
before: Option<&Self::Ordering>
) -> Poll<PollResult<Self::Ordering, Self::Data>>
fn poll_next_before(
self: Pin<&mut Self>,
cx: &mut Context<'_>,
before: Option<&Self::Ordering>
) -> Poll<PollResult<Self::Ordering, Self::Data>>
Attempt to pull out the next value of this stream, registering the current task for wakeup
if needed, and returning NoneBefore
if it is known that the stream will not produce any
more values ordered before the given point. Read more
sourcefn position_hint(&self) -> Option<MaybeBorrowed<'_, Self::Ordering>>
fn position_hint(&self) -> Option<MaybeBorrowed<'_, Self::Ordering>>
The minimum value of the ordering for any future items. Read more
impl<'__pin, S, F, Fut> Unpin for Then<S, F, Fut> where
__Origin<'__pin, S, F, Fut>: Unpin,
S: OrderedStream,
Auto Trait Implementations
impl<S, F, Fut> RefUnwindSafe for Then<S, F, Fut> where
F: RefUnwindSafe,
Fut: RefUnwindSafe,
S: RefUnwindSafe,
<S as OrderedStream>::Ordering: RefUnwindSafe,
impl<S, F, Fut> Send for Then<S, F, Fut> where
F: Send,
Fut: Send,
S: Send,
<S as OrderedStream>::Ordering: Send,
impl<S, F, Fut> Sync for Then<S, F, Fut> where
F: Sync,
Fut: Sync,
S: Sync,
<S as OrderedStream>::Ordering: Sync,
impl<S, F, Fut> UnwindSafe for Then<S, F, Fut> where
F: UnwindSafe,
Fut: UnwindSafe,
S: UnwindSafe,
<S as OrderedStream>::Ordering: UnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more