pub struct SessionFsCache { /* private fields */ }Implementations§
Source§impl SessionFsCache
impl SessionFsCache
pub fn new<P: Into<PathBuf>>(cache_dir: P) -> Self
Sourcepub fn session_data_filepath(&self, session_id: &str) -> PathBuf
pub fn session_data_filepath(&self, session_id: &str) -> PathBuf
Returns the cache file path for session data. The session ID is used directly as the filename. Note: Assumes the session ID is already sanitized and safe for use as a filename.
Trait Implementations§
Source§impl Debug for SessionFsCache
impl Debug for SessionFsCache
Source§impl SessionCache for SessionFsCache
impl SessionCache for SessionFsCache
Auto Trait Implementations§
impl Freeze for SessionFsCache
impl RefUnwindSafe for SessionFsCache
impl Send for SessionFsCache
impl Sync for SessionFsCache
impl Unpin for SessionFsCache
impl UnwindSafe for SessionFsCache
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