pub fn milliseconds<T>(milliseconds: u32) -> 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.

Panics

This function panics of T’s from_millis function returns None.