[−][src]Trait completion_core::CompletionFuture
A Future
that must be polled to completion.
All types that implement Future
should also implement this.
Associated Types
Loading content...Required methods
pub unsafe fn poll(
self: Pin<&mut Self>,
cx: &mut Context<'_>
) -> Poll<Self::Output>
[src]
self: Pin<&mut Self>,
cx: &mut Context<'_>
) -> Poll<Self::Output>
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.
Implementations on Foreign Types
impl<F: CompletionFuture + Unpin + ?Sized> CompletionFuture for &mut F
[src]
type Output = F::Output
pub unsafe fn poll(
mut self: Pin<&mut Self>,
cx: &mut Context<'_>
) -> Poll<Self::Output>
[src]
mut self: Pin<&mut Self>,
cx: &mut Context<'_>
) -> Poll<Self::Output>
impl<F: CompletionFuture + Unpin + ?Sized> CompletionFuture for Box<F>
[src]
type Output = F::Output
pub unsafe fn poll(
mut self: Pin<&mut Self>,
cx: &mut Context<'_>
) -> Poll<Self::Output>
[src]
mut self: Pin<&mut Self>,
cx: &mut Context<'_>
) -> Poll<Self::Output>
impl<P> CompletionFuture for Pin<P> where
P: Unpin + DerefMut,
P::Target: CompletionFuture,
[src]
P: Unpin + DerefMut,
P::Target: CompletionFuture,
type Output = <P::Target as CompletionFuture>::Output
pub unsafe fn poll(
self: Pin<&mut Self>,
cx: &mut Context<'_>
) -> Poll<Self::Output>
[src]
self: Pin<&mut Self>,
cx: &mut Context<'_>
) -> Poll<Self::Output>
impl<F: CompletionFuture> CompletionFuture for AssertUnwindSafe<F>
[src]
type Output = F::Output
pub unsafe fn poll(
self: Pin<&mut Self>,
cx: &mut Context<'_>
) -> Poll<Self::Output>
[src]
self: Pin<&mut Self>,
cx: &mut Context<'_>
) -> Poll<Self::Output>
impl<T> CompletionFuture for Pending<T> where
Self: RegularFuture,
[src]
Self: RegularFuture,
type Output = <Pending<T> as RegularFuture>::Output
pub unsafe fn poll(
self: Pin<&mut Self>,
cx: &mut Context<'_>
) -> Poll<Self::Output>
[src]
self: Pin<&mut Self>,
cx: &mut Context<'_>
) -> Poll<Self::Output>
impl<T> CompletionFuture for Ready<T> where
Self: RegularFuture,
[src]
Self: RegularFuture,
type Output = <Ready<T> as RegularFuture>::Output
pub unsafe fn poll(
self: Pin<&mut Self>,
cx: &mut Context<'_>
) -> Poll<Self::Output>
[src]
self: Pin<&mut Self>,
cx: &mut Context<'_>
) -> Poll<Self::Output>