Skip to main content

OffsetSource

Trait OffsetSource 

Source
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§

Source

fn correction(&mut self) -> f64

The current offset between the two clocks.

Source

fn srate(&mut self) -> f64

The nominal rate of the stream.

Source

fn was_reset(&mut self) -> bool

True when the connection reset since the last call.

Source

fn clock(&mut self) -> f64

The local clock, in seconds.

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§