Struct gotham::middleware::session::SessionMiddleware
[−]
[src]
pub struct SessionMiddleware<B, T> where
B: Backend,
T: Default + Serialize + for<'de> Deserialize<'de> + Send + 'static, { /* fields omitted */ }
The per-request value which deals with sessions
See NewSessionMiddleware
for usage details.
Trait Implementations
impl<B, T> Middleware for SessionMiddleware<B, T> where
B: Backend + Send + 'static,
T: Default + Serialize + for<'de> Deserialize<'de> + Send + 'static,
[src]
B: Backend + Send + 'static,
T: Default + Serialize + for<'de> Deserialize<'de> + Send + 'static,
fn call<Chain>(
self,
state: State,
request: Request,
chain: Chain
) -> Box<HandlerFuture> where
Chain: FnOnce(State, Request) -> Box<HandlerFuture> + Send + 'static,
Self: Sized,
self,
state: State,
request: Request,
chain: Chain
) -> Box<HandlerFuture> where
Chain: FnOnce(State, Request) -> Box<HandlerFuture> + Send + 'static,
Self: Sized,
Entry point to the middleware. To pass the request on to the application, the middleware invokes the chain
function with the provided state
and request
. Read more