pub struct SessionCleanupConfig {
pub max_idle_time: Duration,
pub max_session_age: Duration,
pub cleanup_interval: Duration,
pub enable_aggressive_cleanup: bool,
pub memory_pressure_threshold: usize,
}Expand description
Configuration for session cleanup
Fields§
§max_idle_time: DurationMaximum session idle time
max_session_age: DurationMaximum session age
cleanup_interval: DurationCleanup interval
enable_aggressive_cleanup: boolEnable aggressive cleanup under memory pressure
memory_pressure_threshold: usizeMemory pressure threshold (MB)
Trait Implementations§
Source§impl Clone for SessionCleanupConfig
impl Clone for SessionCleanupConfig
Source§fn clone(&self) -> SessionCleanupConfig
fn clone(&self) -> SessionCleanupConfig
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 SessionCleanupConfig
impl Debug for SessionCleanupConfig
Auto Trait Implementations§
impl Freeze for SessionCleanupConfig
impl RefUnwindSafe for SessionCleanupConfig
impl Send for SessionCleanupConfig
impl Sync for SessionCleanupConfig
impl Unpin for SessionCleanupConfig
impl UnwindSafe for SessionCleanupConfig
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