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§
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".