pub trait DurationExt {
    // Required method
    fn millis(&self) -> Duration;

    // Provided methods
    fn seconds(&self) -> Duration { ... }
    fn minutes(&self) -> Duration { ... }
}

Required Methods§

source

fn millis(&self) -> Duration

Provided Methods§

source

fn seconds(&self) -> Duration

source

fn minutes(&self) -> Duration

Implementations on Foreign Types§

source§

impl DurationExt for f32

source§

impl DurationExt for u64

Implementors§