Skip to main content

Clock

Trait Clock 

Source
pub trait Clock: WasmCompatSend + WasmCompatSync {
    // Required method
    fn elapsed(&self) -> Duration;
}
Expand description

A host-owned monotonic clock: what a sink stamps Observation::at from. rig-core reads no clock itself; a test supplies a counter.

Required Methods§

Source

fn elapsed(&self) -> Duration

Elapsed time since the clock’s origin.

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§