Skip to main content

WasiSystemClock

Trait WasiSystemClock 

Source
pub trait WasiSystemClock: Send + Sync {
    // Required methods
    fn resolution(&self) -> Duration;
    fn now(&self, precision: Duration) -> SystemTime;
}

Required Methods§

Source

fn resolution(&self) -> Duration

Source

fn now(&self, precision: Duration) -> SystemTime

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§

Source§

impl WasiSystemClock for SystemClock

Available on crate feature sync only.