MCPcopy Create free account
hub / github.com/aws/clock-bound / ClockSyncAlgorithm

Class ClockSyncAlgorithm

clock-bound/src/daemon/clock_sync_algorithm.rs:41–54  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

39#[derive(Debug, Clone, bon::Builder)]
40pub struct ClockSyncAlgorithm {
41 /// The Amazon Time Sync reference clock's ff algorithm
42 amazon_time_sync: Option<source::AmazonTimeSync>,
43 /// A vector of ff algorithms for ntp source reference clocks.
44 ///
45 /// This includes both standalone NTP sources and pool-resolved sources.
46 /// Pool sources are distinguished by having `pool_domain` set on the [`source::NtpSource`].
47 #[builder(default)]
48 ntp_sources: Vec<source::NtpSource>,
49 /// The PHC device
50 ///
51 /// Optional since not every instance supports this
52 phc: Option<source::Phc>,
53 /// Shared reference to the current selected clock source
54 selected_clock: Arc<SelectedClockSource>,
55 /// Selector. Chooses the best clock source
56 selector: Selector,
57 /// Monotonically increasing sequence number for ffevents log entries.

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected