Cleanup

Trait Cleanup 

Source
pub trait Cleanup: Send + Sync {
    // Required method
    fn cleanup(&self);
}
Expand description

Cleanup defines an implementation where expired elements can be removed.

Required Methods§

Source

fn cleanup(&self)

Cleanup removes all elements which have been expired.

Implementors§

Source§

impl<K, V, TS> Cleanup for TimedMap<K, V, TS>
where K: Eq + PartialEq + Hash + Clone + Send + Sync, V: Clone + Send + Sync, TS: TimeSource + Send + Sync,