[][src]Trait completion::future::FutureExt

pub trait FutureExt: Future + Sized {
    pub fn must_complete(self) -> MustComplete<Self> { ... }
}

Extension trait for converting Futures to CompletionFutures.

Provided methods

pub fn must_complete(self) -> MustComplete<Self>[src]

Make sure that the future will complete. Equivalent to MustComplete::new.

Examples

use completion::FutureExt;

let completion_future = async { 19 }.must_complete();
Loading content...

Implementors

impl<T: Future> FutureExt for T[src]

Loading content...