pub trait TimeUnits {
// Required methods
fn ms(self) -> Duration;
fn secs(self) -> Duration;
fn minutes(self) -> Duration;
fn hours(self) -> Duration;
}
Expand description
Extension methods for initializing Duration
values.
pub trait TimeUnits {
// Required methods
fn ms(self) -> Duration;
fn secs(self) -> Duration;
fn minutes(self) -> Duration;
fn hours(self) -> Duration;
}
Extension methods for initializing Duration
values.