[][src]Struct manual_future::ManualFutureCompleter

pub struct ManualFutureCompleter<T: Unpin> { /* fields omitted */ }

Used to complete a ManualFuture so it can be resolved to a given value.

Dropping a ManualFutureCompleter will cause the associated ManualFuture to never complete.

Methods

impl<T: Unpin> ManualFutureCompleter<T>[src]

pub async fn complete(self, value: T)[src]

Complete the ManualFuture associated with this

ManualFutureCompleter. To prevent cases where a ManualFuture is completed twice, this takes the completer by value.

Auto Trait Implementations

impl<T> Send for ManualFutureCompleter<T> where
    T: Send

impl<T> Sync for ManualFutureCompleter<T> where
    T: Send

impl<T> Unpin for ManualFutureCompleter<T>

impl<T> !UnwindSafe for ManualFutureCompleter<T>

impl<T> !RefUnwindSafe for ManualFutureCompleter<T>

Blanket Implementations

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

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

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

type Error = !

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.

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

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

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