Struct ordered_stream::FromFuture
source · [−]pub struct FromFuture<F> { /* private fields */ }
Expand description
An OrderedStream
wrapper around an OrderedFuture
.
Trait Implementations
sourceimpl<F: Debug> Debug for FromFuture<F>
impl<F: Debug> Debug for FromFuture<F>
sourceimpl<F: OrderedFuture> From<F> for FromFuture<F>
impl<F: OrderedFuture> From<F> for FromFuture<F>
sourceimpl<F: OrderedFuture> FusedOrderedStream for FromFuture<F>
impl<F: OrderedFuture> FusedOrderedStream for FromFuture<F>
sourcefn is_terminated(&self) -> bool
fn is_terminated(&self) -> bool
Returns true
if the stream should no longer be polled.
sourceimpl<F: OrderedFuture> OrderedStream for FromFuture<F>
impl<F: OrderedFuture> OrderedStream for FromFuture<F>
type Data = <F as OrderedFuture>::Output
type Data = <F as OrderedFuture>::Output
The unordered data carried by this stream Read more
type Ordering = <F as OrderedFuture>::Ordering
type Ordering = <F as OrderedFuture>::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, F> Unpin for FromFuture<F> where
__Origin<'__pin, F>: Unpin,
Auto Trait Implementations
impl<F> RefUnwindSafe for FromFuture<F> where
F: RefUnwindSafe,
impl<F> Send for FromFuture<F> where
F: Send,
impl<F> Sync for FromFuture<F> where
F: Sync,
impl<F> UnwindSafe for FromFuture<F> where
F: 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