Trait rudi::FutureExt

source ·
pub trait FutureExt: Future {
    // Provided method
    fn boxed<'a>(self) -> BoxFuture<'a, Self::Output>
       where Self: Sized + 'a { ... }
}
Expand description

An extension trait for Futures that provides a convenient adapter.

Provided Methods§

source

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

Wrap the future in a Box, pinning it.

Implementors§

source§

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