Trait fuchsia_zircon::DurationNum
source · pub trait DurationNum: Sized {
// Required methods
fn nanos(self) -> Duration;
fn micros(self) -> Duration;
fn millis(self) -> Duration;
fn seconds(self) -> Duration;
fn minutes(self) -> Duration;
fn hours(self) -> Duration;
// Provided methods
fn micro(self) -> Duration { ... }
fn milli(self) -> Duration { ... }
fn second(self) -> Duration { ... }
fn minute(self) -> Duration { ... }
fn hour(self) -> Duration { ... }
}
Required Methods§
fn nanos(self) -> Duration
fn micros(self) -> Duration
fn millis(self) -> Duration
fn seconds(self) -> Duration
fn minutes(self) -> Duration
fn hours(self) -> Duration
Provided Methods§
fn micro(self) -> Duration
fn milli(self) -> Duration
fn second(self) -> Duration
fn minute(self) -> Duration
fn hour(self) -> Duration
Object Safety§
This trait is not object safe.