pub enum TimeSyncLeader {
Local {
priority: u64,
},
Remote(TimeSyncSource),
}Expand description
Describes the currently elected time sync leader.
Variants§
Local
The local node is the current leader at the given effective priority.
Remote(TimeSyncSource)
A remote node is the current leader.
Trait Implementations§
Source§impl Clone for TimeSyncLeader
impl Clone for TimeSyncLeader
Source§fn clone(&self) -> TimeSyncLeader
fn clone(&self) -> TimeSyncLeader
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 moreSource§impl Debug for TimeSyncLeader
impl Debug for TimeSyncLeader
impl Eq for TimeSyncLeader
Source§impl PartialEq for TimeSyncLeader
impl PartialEq for TimeSyncLeader
Source§fn eq(&self, other: &TimeSyncLeader) -> bool
fn eq(&self, other: &TimeSyncLeader) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for TimeSyncLeader
Auto Trait Implementations§
impl Freeze for TimeSyncLeader
impl RefUnwindSafe for TimeSyncLeader
impl Send for TimeSyncLeader
impl Sync for TimeSyncLeader
impl Unpin for TimeSyncLeader
impl UnsafeUnpin for TimeSyncLeader
impl UnwindSafe for TimeSyncLeader
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