[][src]Trait completion_core::CompletionFuture

#[must_use = "futures do nothing unless you use them"]pub trait CompletionFuture {
    type Output;
    pub unsafe fn poll(
        self: Pin<&mut Self>,
        cx: &mut Context<'_>
    ) -> Poll<Self::Output>; }

A Future that must be polled to completion.

All types that implement Future should also implement this.

Associated Types

type Output[src]

The type of value produced on completion.

Loading content...

Required methods

pub unsafe fn poll(
    self: Pin<&mut Self>,
    cx: &mut Context<'_>
) -> Poll<Self::Output>
[src]

Attempt to resolve the future to a final value, registering the current task for wakeup if the value is not yet available.

Safety

Once this function is called and the type does not also implement Future, the user must not drop or forget the future until it it has returned Poll::Ready or panicked.

Loading content...

Implementations on Foreign Types

impl<F: CompletionFuture + Unpin + ?Sized> CompletionFuture for &mut F[src]

type Output = F::Output

impl<F: CompletionFuture + Unpin + ?Sized> CompletionFuture for Box<F>[src]

type Output = F::Output

impl<P> CompletionFuture for Pin<P> where
    P: Unpin + DerefMut,
    P::Target: CompletionFuture
[src]

type Output = <P::Target as CompletionFuture>::Output

impl<F: CompletionFuture> CompletionFuture for AssertUnwindSafe<F>[src]

type Output = F::Output

impl<T> CompletionFuture for Pending<T> where
    Self: RegularFuture
[src]

type Output = <Pending<T> as RegularFuture>::Output

impl<T> CompletionFuture for Ready<T> where
    Self: RegularFuture
[src]

type Output = <Ready<T> as RegularFuture>::Output

Loading content...

Implementors

Loading content...