Struct carapax::session::SessionManager
source · pub struct SessionManager<B> { /* private fields */ }
Available on crate feature
session
only.Expand description
A session manager
Implementations§
source§impl<B> SessionManager<B>where
B: SessionBackend,
impl<B> SessionManager<B>where
B: SessionBackend,
sourcepub fn new(backend: B) -> SessionManager<B>
pub fn new(backend: B) -> SessionManager<B>
sourcepub fn get_session<I>(&self, id: I) -> Session<B>
pub fn get_session<I>(&self, id: I) -> Session<B>
Returns a session for ID
Trait Implementations§
source§impl<B> Clone for SessionManager<B>where
B: Clone,
impl<B> Clone for SessionManager<B>where
B: Clone,
source§fn clone(&self) -> SessionManager<B>
fn clone(&self) -> SessionManager<B>
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations§
impl<B> Freeze for SessionManager<B>
impl<B> !RefUnwindSafe for SessionManager<B>
impl<B> Send for SessionManager<B>where
B: Send,
impl<B> Sync for SessionManager<B>where
B: Send,
impl<B> Unpin for SessionManager<B>
impl<B> !UnwindSafe for SessionManager<B>
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
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more