Skip to main content

MaybeFutureExt

Trait MaybeFutureExt 

Source
pub trait MaybeFutureExt: Future + Sized {
    // Provided method
    fn maybe_boxed<'a>(self) -> MaybeSendBoxFuture<'a, Self::Output>
       where Self: MaybeSend + 'a { ... }
}
Expand description

Extension helpers for boxing futures with target-appropriate Send bounds.

Provided Methods§

Source

fn maybe_boxed<'a>(self) -> MaybeSendBoxFuture<'a, Self::Output>
where Self: MaybeSend + 'a,

Box this future with target-appropriate Send bounds.

Dyn Compatibility§

This trait is not dyn compatible.

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

Implementors§