Skip to main content

expiry_from

Function expiry_from 

Source
pub fn expiry_from(created_at: SystemTime, ttl: Duration) -> SystemTime
Expand description

Compute when a record originally captured at created_at will expire. Pulled out for unit-test reach; the SystemTime arithmetic is otherwise awkward to assert against without a clock injection point.