pub struct RetentionEngine { /* private fields */ }Implementations§
Source§impl RetentionEngine
impl RetentionEngine
pub fn new(policy: RetentionPolicy) -> Self
pub fn should_purge(&self) -> bool
pub fn purge_sessions( &self, sessions: &mut Vec<(String, DateTime<Utc>)>, ) -> usize
pub fn truncate_wal(&self, wal: &mut Vec<String>) -> usize
pub fn total_purged_sessions(&self) -> u64
pub fn total_purged_entries(&self) -> u64
Auto Trait Implementations§
impl !Freeze for RetentionEngine
impl RefUnwindSafe for RetentionEngine
impl Send for RetentionEngine
impl Sync for RetentionEngine
impl Unpin for RetentionEngine
impl UnsafeUnpin for RetentionEngine
impl UnwindSafe for RetentionEngine
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