Struct simple_futures::complete_future::CompleteFutureHandle[][src]

pub struct CompleteFutureHandle { /* fields omitted */ }

A completion handle for CompleteFuture. Meant to be sent where the work is actually getting done.

Implementations

impl CompleteFutureHandle[src]

pub fn complete(&self) -> Option<bool>[src]

Sets the future to complete and wakes the waker if wasn’t already complete. Returns the last state of complete, it is usually an error if this is true. If returns None that means the future this is a handle for was dropped.

Trait Implementations

impl Debug for CompleteFutureHandle[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.