Struct poem::session::ServerSession
source · pub struct ServerSession<T> { /* private fields */ }
Available on crate feature
session
only.Expand description
Middleware for server-side session.
Implementations
sourceimpl<T> ServerSession<T>
impl<T> ServerSession<T>
sourcepub fn new(config: CookieConfig, storage: T) -> Self
pub fn new(config: CookieConfig, storage: T) -> Self
Create a ServerSession
middleware.
Trait Implementations
sourceimpl<T: SessionStorage, E: Endpoint> Middleware<E> for ServerSession<T>
impl<T: SessionStorage, E: Endpoint> Middleware<E> for ServerSession<T>
type Output = CookieJarManagerEndpoint<ServerSessionEndpoint<T, E>>
type Output = CookieJarManagerEndpoint<ServerSessionEndpoint<T, E>>
New endpoint type. Read more
Auto Trait Implementations
impl<T> RefUnwindSafe for ServerSession<T>where
T: RefUnwindSafe,
impl<T> Send for ServerSession<T>where
T: Send + Sync,
impl<T> Sync for ServerSession<T>where
T: Send + Sync,
impl<T> Unpin for ServerSession<T>
impl<T> UnwindSafe for ServerSession<T>where
T: RefUnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more