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

pub trait FutureExt: Future + Sized {
    fn into_completion(self) -> Adapter<Self>

Notable traits for Adapter<T>

impl<T: Future> Future for Adapter<T> type Output = T::Output;
{ ... } }

Extension trait for converting Futures to CompletionFutures.

Provided methods

fn into_completion(self) -> Adapter<Self>

Notable traits for Adapter<T>

impl<T: Future> Future for Adapter<T> type Output = T::Output;
[src]

Convert this future into a CompletionFuture.

Examples

use completion::FutureExt;

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

Implementors

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

Loading content...