pub struct SessionMiddleware<V, K, S>{ /* private fields */ }
Expand description
Middleware for automatic session management.
Implementations§
Source§impl<V: Serialize + DeserializeOwned + 'static, K: Key<Value = V>, S: SessionManager<V>> SessionMiddleware<V, K, S>
impl<V: Serialize + DeserializeOwned + 'static, K: Key<Value = V>, S: SessionManager<V>> SessionMiddleware<V, K, S>
Sourcepub fn new(manager: S, config: SessionConfig) -> Self
pub fn new(manager: S, config: SessionConfig) -> Self
Create a new SessionMiddleware
for the given SessionManager
and SessionConfig
.
Trait Implementations§
Source§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,
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,
Auto Trait Implementations§
impl<V, K, S> Freeze for SessionMiddleware<V, K, S>where
S: Freeze,
impl<V, K, S> RefUnwindSafe for SessionMiddleware<V, K, S>
impl<V, K, S> Send for SessionMiddleware<V, K, S>
impl<V, K, S> Sync for SessionMiddleware<V, K, S>
impl<V, K, S> Unpin for SessionMiddleware<V, K, S>
impl<V, K, S> UnwindSafe for SessionMiddleware<V, K, S>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more