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;
// Provided method
fn smooth_correction(&mut self, _remote_ts: f64) -> 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.
Provided Methods§
Sourcefn smooth_correction(&mut self, _remote_ts: f64) -> f64
fn smooth_correction(&mut self, _remote_ts: f64) -> f64
Smooth offset evaluated for remote_ts using the opt-in drift model
(flags::DRIFT). Defaults to OffsetSource::correction.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".