pub struct SessionManagerConfig {
pub max_sessions: usize,
pub session_timeout: u64,
pub auto_cleanup: bool,
pub cleanup_interval: u64,
pub persist_sessions: bool,
pub persistence_dir: String,
}Expand description
Session manager configuration
Fields§
§max_sessions: usizeMaximum number of active sessions
session_timeout: u64Session timeout in seconds
auto_cleanup: boolWhether to auto-cleanup expired sessions
cleanup_interval: u64Cleanup interval in seconds
persist_sessions: boolWhether to persist sessions
persistence_dir: StringPersistence directory
Trait Implementations§
Source§impl Clone for SessionManagerConfig
impl Clone for SessionManagerConfig
Source§fn clone(&self) -> SessionManagerConfig
fn clone(&self) -> SessionManagerConfig
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 SessionManagerConfig
impl Debug for SessionManagerConfig
Auto Trait Implementations§
impl Freeze for SessionManagerConfig
impl RefUnwindSafe for SessionManagerConfig
impl Send for SessionManagerConfig
impl Sync for SessionManagerConfig
impl Unpin for SessionManagerConfig
impl UnwindSafe for SessionManagerConfig
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