Skip to main content

ClockReader

Trait ClockReader 

Source
pub trait ClockReader: Send + Sync {
    // Required method
    fn read_clock(&self) -> Option<ClockFrame>;
}
Expand description

Synchronous read port for a coherent Device clock sample.

None means that no wall-clock frame is available. Implementations must return all four fields from the same sample.

Required Methods§

Source

fn read_clock(&self) -> Option<ClockFrame>

Read one coherent frame, or report that no wall clock is available.

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§