pub struct FileSessionStorage { /* private fields */ }Expand description
File-based session storage storing one JSON file per session.
Each session is stored at {directory}/{session_id}.json.
Implementations§
Trait Implementations§
Source§impl Clone for FileSessionStorage
impl Clone for FileSessionStorage
Source§fn clone(&self) -> FileSessionStorage
fn clone(&self) -> FileSessionStorage
Returns a duplicate 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 moreSource§impl Debug for FileSessionStorage
impl Debug for FileSessionStorage
Source§impl SessionStorage for FileSessionStorage
impl SessionStorage for FileSessionStorage
Source§async fn save(&self, session: &Session) -> Result<(), StorageError>
async fn save(&self, session: &Session) -> Result<(), StorageError>
Save a session (create or update).
Source§async fn list(&self) -> Result<Vec<SessionSummary>, StorageError>
async fn list(&self) -> Result<Vec<SessionSummary>, StorageError>
List all session summaries.
Auto Trait Implementations§
impl Freeze for FileSessionStorage
impl RefUnwindSafe for FileSessionStorage
impl Send for FileSessionStorage
impl Sync for FileSessionStorage
impl Unpin for FileSessionStorage
impl UnsafeUnpin for FileSessionStorage
impl UnwindSafe for FileSessionStorage
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