pub enum SyncReason {
DirectJoin,
NewNeighbor,
SyncReport,
Resync,
}
Available on crate feature
engine
only.Expand description
Why we started a sync request
Variants§
DirectJoin
Direct join request via API
NewNeighbor
Peer showed up as new neighbor in the gossip swarm
SyncReport
We synced after receiving a sync report that indicated news for us
Resync
We received a sync report while a sync was running, so run again afterwars
Trait Implementations§
Source§impl Clone for SyncReason
impl Clone for SyncReason
Source§fn clone(&self) -> SyncReason
fn clone(&self) -> SyncReason
Returns a copy of the value. Read more
1.0.0 · 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 SyncReason
impl Debug for SyncReason
Source§impl<'de> Deserialize<'de> for SyncReason
impl<'de> Deserialize<'de> for SyncReason
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for SyncReason
impl PartialEq for SyncReason
Source§impl Serialize for SyncReason
impl Serialize for SyncReason
impl Copy for SyncReason
impl Eq for SyncReason
impl StructuralPartialEq for SyncReason
Auto Trait Implementations§
impl Freeze for SyncReason
impl RefUnwindSafe for SyncReason
impl Send for SyncReason
impl Sync for SyncReason
impl Unpin for SyncReason
impl UnwindSafe for SyncReason
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more