pub fn try_milliseconds<T>(milliseconds: u32) -> Option<T> where
    T: Duration
Expand description

Creates a duration from a number of milliseconds

This is a convenient wrapper for T::from_millis() when T has a long-difficult-to-type name.