Skip to main content

BoxedFuture

Type Alias BoxedFuture 

Source
pub type BoxedFuture = ResponseFuture;
Expand description

A pinned, boxed, Send future returning an HTTP response, or an immediately resolved response.

Aliased Type§

pub enum BoxedFuture {
    Ready(Option<Response<Body>>),
    Boxed(Pin<Box<dyn Future<Output = Response<Body>> + Send>>),
}

Variants§

§

Ready(Option<Response<Body>>)

The response was resolved immediately without any async waiting.

§

Boxed(Pin<Box<dyn Future<Output = Response<Body>> + Send>>)

The response is pending and boxed.