DefaultFuture

Type Alias DefaultFuture 

Source
pub type DefaultFuture<T, E> = Box<dyn Future<Item = T, Error = E> + Send>;
Expand description

A default boxed future that may be returned from FromRequest, FromBody and Guard implementations.

The future is required to be Send to allow running it on a multi-threaded executor.

Aliased Typeยง

pub struct DefaultFuture<T, E>(/* private fields */);