pub trait OffsetSource {
// Required methods
fn correction(&mut self) -> f64;
fn srate(&mut self) -> f64;
fn was_reset(&mut self) -> bool;
fn clock(&mut self) -> f64;
}Expand description
Reads the clock offset that the time sync channel measured.
The post-processor asks for a value instead of reading a clock, so a test drives it with fixed numbers.
Required Methods§
Sourcefn correction(&mut self) -> f64
fn correction(&mut self) -> f64
The current offset between the two clocks.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".