Skip to main content

BoxFuture

Type Alias BoxFuture 

Source
pub type BoxFuture<'a, T> = Pin<Box<dyn Future<Output = T> + Send + 'a>>;
Expand description

A boxed future borrowed from the cache and its key arguments.

Mirrors rustlavel_http::handler::BoxFuture, but borrowing rather than 'static, so a driver can hold a lock guard or a pooled connection across the await without cloning the key first.

Aliased Typeยง

#[repr(transparent)]
pub struct BoxFuture<'a, T> { /* private fields */ }