Skip to main content

BoxedStaticFuture

Type Alias BoxedStaticFuture 

Source
pub type BoxedStaticFuture = Pin<Box<dyn Future<Output = Box<dyn Any + 'static>> + 'static>>;
Expand description

Type alias for a boxed future that outputs boxed Any and is ’static but not Send.

This type is used for type-erased futures with static lifetime but no Send requirement.

Aliased Type§

pub struct BoxedStaticFuture { /* private fields */ }