build_active_filter

Function build_active_filter 

Source
pub fn build_active_filter<T: LastActiveTs>(
    active_duration: Duration,
) -> impl Fn(i64, &T) -> bool
Expand description

Builds a filter closure that checks whether a LastActiveTs item is still within the specified active duration, relative to the current time provided by the given SystemTimer.