Skip to main content

FutureExt

Trait FutureExt 

Source
pub trait FutureExt: Future {
    // Provided method
    fn boxed<'a, T>(self) -> BoxFuture<'a, T>
       where Self: Future<Output = T> + Sized + Send + 'a { ... }
}

Provided Methods§

Source

fn boxed<'a, T>(self) -> BoxFuture<'a, T>
where Self: Future<Output = T> + Sized + Send + 'a,

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§

Source§

impl<T> FutureExt for T
where T: Future + ?Sized,