pub struct NextBefore<'a, S>where
S: OrderedStream + ?Sized,{ /* private fields */ }Expand description
A future for the next_before function.
Trait Implementations§
Source§impl<'a, S> Debug for NextBefore<'a, S>
impl<'a, S> Debug for NextBefore<'a, S>
Source§impl<'a, S> Future for NextBefore<'a, S>where
S: OrderedStream + ?Sized,
impl<'a, S> Future for NextBefore<'a, S>where
S: OrderedStream + ?Sized,
Source§type Output = PollResult<<S as OrderedStream>::Ordering, <S as OrderedStream>::Data>
type Output = PollResult<<S as OrderedStream>::Ordering, <S as OrderedStream>::Data>
The type of value produced on completion.
Source§fn poll(
self: Pin<&mut NextBefore<'a, S>>,
cx: &mut Context<'_>,
) -> Poll<PollResult<<S as OrderedStream>::Ordering, <S as OrderedStream>::Data>>
fn poll( self: Pin<&mut NextBefore<'a, S>>, cx: &mut Context<'_>, ) -> Poll<PollResult<<S as OrderedStream>::Ordering, <S as OrderedStream>::Data>>
Attempts to resolve the future to a final value, registering
the current task for wakeup if the value is not yet available. Read more
impl<'a, S> Unpin for NextBefore<'a, S>where
S: OrderedStream + ?Sized,
Auto Trait Implementations§
impl<'a, S> Freeze for NextBefore<'a, S>where
S: ?Sized,
impl<'a, S> RefUnwindSafe for NextBefore<'a, S>
impl<'a, S> Send for NextBefore<'a, S>
impl<'a, S> Sync for NextBefore<'a, S>
impl<'a, S> UnsafeUnpin for NextBefore<'a, S>where
S: ?Sized,
impl<'a, S> !UnwindSafe for NextBefore<'a, S>
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<F> IntoFuture for Fwhere
F: Future,
impl<F> IntoFuture for Fwhere
F: Future,
Source§type IntoFuture = F
type IntoFuture = F
Which kind of future are we turning this into?
Source§fn into_future(self) -> <F as IntoFuture>::IntoFuture
fn into_future(self) -> <F as IntoFuture>::IntoFuture
Creates a future from a value. Read more