[][src]Trait must_future::IntoMustBoxFuture

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

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

fn must_box<'a>(self) -> MustBoxFuture<'a, Self::Output> where
    Self: 'a + Sized + Send

Convert this raw future into a MustBoxFuture

Loading content...

Implementors

impl<T: ?Sized> IntoMustBoxFuture for T where
    T: Future
[src]

Loading content...