Skip to main content

StoreFuture

Type Alias StoreFuture 

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

What a store’s operations return.

Spelled out as a boxed future rather than an async fn because SessionStore has to be usable as dyn SessionStore — the middleware holds whichever driver the application picked, and cannot be generic over it without infecting every route with a type parameter.

Aliased Type§

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