Struct kanidmd_core::https::middleware::CacheableMiddleware
source · pub struct CacheableMiddleware;
Trait Implementations§
source§impl Default for CacheableMiddleware
impl Default for CacheableMiddleware
source§fn default() -> CacheableMiddleware
fn default() -> CacheableMiddleware
Returns the “default value” for a type. Read more
source§impl<State: Clone + Send + Sync + 'static> Middleware<State> for CacheableMiddleware
impl<State: Clone + Send + Sync + 'static> Middleware<State> for CacheableMiddleware
source§fn handle<'life0, 'life1, 'async_trait>(
&'life0 self,
request: Request<State>,
next: Next<'life1, State>
) -> Pin<Box<dyn Future<Output = Result> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn handle<'life0, 'life1, 'async_trait>( &'life0 self, request: Request<State>, next: Next<'life1, State> ) -> Pin<Box<dyn Future<Output = Result> + Send + 'async_trait>>where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,
Asynchronously handle the request, and return a response.