Skip to main content

ExpireAfterSelector

Type Alias ExpireAfterSelector 

Source
pub type ExpireAfterSelector<T> = Rc<dyn Fn(&T) -> Option<Duration>>;
Expand description

The expiration of an item: the time after which it is removed, None for never.

Aliased Typeยง

pub struct ExpireAfterSelector<T> { /* private fields */ }