pub trait IntoMustBoxFuture: Future {
    fn must_box<'a>(self) -> MustBoxFuture<'a, Self::Output> 
    where
        Self: 'a + Sized + Send
, { ... } }
Expand description

Helper trait for converting raw unboxed futures into MustBoxFutures. Would be nice to impl<F: Future> Into<MustBoxFuture> for F, but blanket impls in rust core prevent this.

Provided Methods§

Convert this raw future into a MustBoxFuture

Implementors§