Skip to main content

CyclicClock

Trait CyclicClock 

Source
pub trait CyclicClock:
    Send
    + Sync
    + 'static {
    // Required method
    fn now_nanos(&self) -> u64;
}
Expand description

Monotonic nanosecond time source used for scheduling cyclic dispatch.

Distinct from crate::MonotonicClock (telemetry) by design: the type distinction guarantees a telemetry mock can never be wired as the scheduler. A future fieldbus distributed-clock source is just another implementation.

Required Methods§

Source

fn now_nanos(&self) -> u64

Nanoseconds since this clock’s epoch. Monotonic non-decreasing.

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§