Skip to main content

parse_step

Function parse_step 

Source
pub fn parse_step(s: &str) -> Result<TimeDelta, FaucetError>
Expand description

Parse a WindowSpec duration string (step / granularity / lookback) into an absolute chrono::Duration: 45s / 30m / 6h / 30d (d = 24h), or a bare integer (= seconds). Must be positive.