Skip to main content

parse_exit_after_ms

Function parse_exit_after_ms 

Source
pub fn parse_exit_after_ms(raw: &str) -> Option<Duration>
Expand description

Parse a positive millisecond string (such as "1500") into a Duration.

Rejects empty strings, zero, negative numbers, and non-numeric input.