Skip to main content

Timed

Trait Timed 

Source
pub trait Timed {
    // Required method
    fn time(&self) -> Option<f64>;

    // Provided method
    fn duration(&self) -> Option<Duration> { ... }
}
Expand description

Trait implementation for time value as u64 and Duration

Required Methods§

Source

fn time(&self) -> Option<f64>

Get optional time of response timing

Provided Methods§

Source

fn duration(&self) -> Option<Duration>

Get optional time as Duration

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§