pub struct SyncEvent {
pub peer: PublicKey,
pub origin: Origin,
pub finished: SystemTime,
pub started: SystemTime,
pub result: Result<SyncDetails, String>,
}
Available on crate features
rpc
and engine
only.Expand description
Event emitted when a sync operation completes
Fields§
§peer: PublicKey
Peer we synced with
origin: Origin
Origin of the sync exchange
finished: SystemTime
Timestamp when the sync started
started: SystemTime
Timestamp when the sync finished
result: Result<SyncDetails, String>
Result of the sync operation
Trait Implementations§
Source§impl<'de> Deserialize<'de> for SyncEvent
impl<'de> Deserialize<'de> for SyncEvent
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
impl Eq for SyncEvent
impl StructuralPartialEq for SyncEvent
Auto Trait Implementations§
impl Freeze for SyncEvent
impl RefUnwindSafe for SyncEvent
impl Send for SyncEvent
impl Sync for SyncEvent
impl Unpin for SyncEvent
impl UnwindSafe for SyncEvent
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