pub struct TimeSyncConfig {
pub role: TimeSyncRole,
pub priority: u64,
pub source_timeout_ms: u64,
pub announce_interval_ms: u64,
pub request_interval_ms: u64,
pub consumer_promotion_enabled: bool,
pub max_slew_ppm: u32,
}Expand description
Configures time sync behavior for a router or tracker.
Fields§
§role: TimeSyncRoleLocal participation mode used for leader election and serving behavior.
priority: u64Lower values are preferred during source selection.
source_timeout_ms: u64Maximum age before an announced source is considered inactive.
announce_interval_ms: u64Interval between local announce packets while acting as leader.
request_interval_ms: u64Interval between request packets while following a remote source.
consumer_promotion_enabled: boolAllows a consumer with usable local time to promote itself when no remote source exists.
max_slew_ppm: u32Maximum slew rate applied by SlewedNetworkClock in parts per million.
Trait Implementations§
Source§impl Clone for TimeSyncConfig
impl Clone for TimeSyncConfig
Source§fn clone(&self) -> TimeSyncConfig
fn clone(&self) -> TimeSyncConfig
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for TimeSyncConfig
Source§impl Debug for TimeSyncConfig
impl Debug for TimeSyncConfig
Source§impl Default for TimeSyncConfig
impl Default for TimeSyncConfig
impl Eq for TimeSyncConfig
Source§impl PartialEq for TimeSyncConfig
impl PartialEq for TimeSyncConfig
Source§fn eq(&self, other: &TimeSyncConfig) -> bool
fn eq(&self, other: &TimeSyncConfig) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for TimeSyncConfig
Auto Trait Implementations§
impl Freeze for TimeSyncConfig
impl RefUnwindSafe for TimeSyncConfig
impl Send for TimeSyncConfig
impl Sync for TimeSyncConfig
impl Unpin for TimeSyncConfig
impl UnsafeUnpin for TimeSyncConfig
impl UnwindSafe for TimeSyncConfig
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more