Skip to main content

Clock

Trait Clock 

Source
pub trait Clock {
    // Required method
    fn now(&self) -> Timestamp;
}
Expand description

The host’s time source. The tracker never reads a platform clock.

Required Methods§

Source

fn now(&self) -> Timestamp

Seconds in the same time domain used for hints and age thresholds.

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§