Skip to main content

parse_duration

Function parse_duration 

Source
pub fn parse_duration(s: &str) -> Option<Duration>
Expand description

30s, 5m, 2h, 1d, 1h30m, or a bare integer (seconds). None on anything else — the caller turns that into a load error naming the key.