Struct gotham::middleware::session::SessionMiddleware
[−]
[src]
pub struct SessionMiddleware<B, T> where
B: Backend,
T: Default + Serialize + for<'de> Deserialize<'de> + 'static, { /* fields omitted */ }
The per-request value which provides session storage for other middleware and handlers.
See NewSessionMiddleware
for usage details.
Trait Implementations
impl<B, T> Middleware for SessionMiddleware<B, T> where
B: Backend + 'static,
T: Default + Serialize + for<'de> Deserialize<'de> + 'static,
[src]
B: Backend + 'static,
T: Default + Serialize + for<'de> Deserialize<'de> + 'static,
ⓘImportant traits for Box<W>fn call<Chain>(self, state: State, chain: Chain) -> Box<HandlerFuture> where
Chain: FnOnce(State) -> Box<HandlerFuture> + 'static,
Self: Sized,
[src]
ⓘImportant traits for Box<W>
Chain: FnOnce(State) -> Box<HandlerFuture> + '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
. Read more
Auto Trait Implementations
impl<B, T> Send for SessionMiddleware<B, T> where
B: Send,
T: Send,
B: Send,
T: Send,
impl<B, T> Sync for SessionMiddleware<B, T> where
B: Sync,
T: Sync,
B: Sync,
T: Sync,