pub fn parse_duration_nanos(s: &str) -> Option<i64>Expand description
Parse a duration like 5s, 200ms, 1m, 1h into nanoseconds (used by
Docker healthcheck APIs).
Returns None for non-finite (NaN/inf), negative, or out-of-i64-range
results instead of saturating or wrapping the cast.