Struct secure_session::middleware::SessionMiddleware
[−]
[src]
pub struct SessionMiddleware<V, K, S> where
V: Serialize + DeserializeOwned + 'static,
K: Key<Value = V>,
S: SessionManager<V>, { /* fields omitted */ }Middleware for automatic session management.
Methods
impl<V: Serialize + DeserializeOwned + 'static, K: Key<Value = V>, S: SessionManager<V>> SessionMiddleware<V, K, S>[src]
fn new(manager: S, config: SessionConfig) -> Self[src]
Create a new SessionMiddleware for the given SessionManager and SessionConfig.
Trait Implementations
impl<V: Serialize + DeserializeOwned + 'static, K: Key<Value = V>, S: SessionManager<V> + 'static> AroundMiddleware for SessionMiddleware<V, K, S> where
SessionHandler<V, K, S>: Handler, [src]
SessionHandler<V, K, S>: Handler,