pub enum TimeSyncRole {
Consumer,
Source,
Auto,
}Expand description
Declares how a node participates in time synchronization.
Variants§
Consumer
Never originates time unless promoted by consumer fallback rules.
Source
Always advertises itself as a time source.
Auto
Advertises itself only when it has usable time and no better source is active.
Trait Implementations§
Source§impl Clone for TimeSyncRole
impl Clone for TimeSyncRole
Source§fn clone(&self) -> TimeSyncRole
fn clone(&self) -> TimeSyncRole
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 TimeSyncRole
Source§impl Debug for TimeSyncRole
impl Debug for TimeSyncRole
impl Eq for TimeSyncRole
Source§impl PartialEq for TimeSyncRole
impl PartialEq for TimeSyncRole
Source§fn eq(&self, other: &TimeSyncRole) -> bool
fn eq(&self, other: &TimeSyncRole) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for TimeSyncRole
Auto Trait Implementations§
impl Freeze for TimeSyncRole
impl RefUnwindSafe for TimeSyncRole
impl Send for TimeSyncRole
impl Sync for TimeSyncRole
impl Unpin for TimeSyncRole
impl UnsafeUnpin for TimeSyncRole
impl UnwindSafe for TimeSyncRole
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