pub struct FileSessionStore { /* private fields */ }Expand description
File-based session store. Each session is a JSON file in a directory.
Implementations§
Trait Implementations§
Source§impl SessionStore for FileSessionStore
impl SessionStore for FileSessionStore
Source§fn save(&self, snapshot: &SessionSnapshot) -> Result<(), StoreError>
fn save(&self, snapshot: &SessionSnapshot) -> Result<(), StoreError>
Save a session snapshot.
Source§fn load(&self, session_id: &str) -> Result<Option<SessionSnapshot>, StoreError>
fn load(&self, session_id: &str) -> Result<Option<SessionSnapshot>, StoreError>
Load a session snapshot by ID.
Auto Trait Implementations§
impl Freeze for FileSessionStore
impl RefUnwindSafe for FileSessionStore
impl Send for FileSessionStore
impl Sync for FileSessionStore
impl Unpin for FileSessionStore
impl UnsafeUnpin for FileSessionStore
impl UnwindSafe for FileSessionStore
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