pub struct MemStore<S> { /* private fields */ }Implementations§
Trait Implementations§
Source§impl<S: Send + Sync + Clone + 'static> CookieStore for MemStore<S>
impl<S: Send + Sync + Clone + 'static> CookieStore for MemStore<S>
type State = S
type Error = Infallible
async fn store_session( &self, session: CookieSession<Self::State>, ) -> Result<(), Self::Error>
async fn remove_session( &self, id: &SessionId, ) -> Result<Option<CookieSession<Self::State>>, Self::Error>
async fn load_session( &self, id: &SessionId, ) -> Result<Option<CookieSession<Self::State>>, Self::Error>
async fn remove_before(&self, deadline: u64) -> Result<(), Self::Error>
fn spawn_maintenance_task(&self) -> bool
Auto Trait Implementations§
impl<S> Freeze for MemStore<S>
impl<S> !RefUnwindSafe for MemStore<S>
impl<S> Send for MemStore<S>
impl<S> Sync for MemStore<S>
impl<S> Unpin for MemStore<S>
impl<S> !UnwindSafe for MemStore<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