Skip to main content

RealtimeSource

Trait RealtimeSource 

Source
pub trait RealtimeSource: Send + Sync {
    // Required method
    fn read(&self) -> Result<RealtimeSample>;
}
Expand description

A trustworthy Unix epoch source: RTC driver, host, manual input or network service.

Reading is explicit, only at bootstrap or Manager::synchronize; realtime reads never poll the source. A source must return an error rather than fabricate an epoch when unavailable. The sample is anchored when read completes; slow sources should compensate latency and include its uncertainty in the supplied accuracy.

Required Methods§

Implementors§