Skip to main content

StaticFuture

Trait StaticFuture 

Source
pub trait StaticFuture<Output>:
    Future<Output = Output>
    + Send
    + 'static { }
Expand description

A helper trait to designate a future that is Send and 'static, meaning it does not depend on any other lifetime parameters that might otherwise be automatically captured by the compiler.

Implementors§

Source§

impl<T: Future + Send + 'static> StaticFuture<<T as Future>::Output> for T