pub struct PruneConfig {
pub max_sessions: usize,
pub ttl_hours: u64,
}Expand description
Configuration for session pruning.
Fields§
§max_sessions: usizeMaximum number of sessions to keep. 0 = unlimited.
ttl_hours: u64TTL in hours. Sessions older than this are pruned. 0 = no TTL.
Trait Implementations§
Source§impl Clone for PruneConfig
impl Clone for PruneConfig
Source§fn clone(&self) -> PruneConfig
fn clone(&self) -> PruneConfig
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 PruneConfig
impl Debug for PruneConfig
Auto Trait Implementations§
impl Freeze for PruneConfig
impl RefUnwindSafe for PruneConfig
impl Send for PruneConfig
impl Sync for PruneConfig
impl Unpin for PruneConfig
impl UnsafeUnpin for PruneConfig
impl UnwindSafe for PruneConfig
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