pub enum LiveEvent {
InsertLocal {
entry: Entry,
},
InsertRemote {
from: PublicKey,
entry: Entry,
content_status: ContentStatus,
},
ContentReady {
hash: Hash,
},
PendingContentReady,
NeighborUp(PublicKey),
NeighborDown(PublicKey),
SyncFinished(SyncEvent),
}
engine
only.Expand description
Events informing about actions of the live sync progress.
Variants§
InsertLocal
A local insertion.
InsertRemote
Received a remote insert.
Fields
from: PublicKey
The peer that sent us the entry.
content_status: ContentStatus
If the content is available at the local node
ContentReady
The content of an entry was downloaded and is now available at the local node
Fields
hash: Hash
The content hash of the newly available entry content
PendingContentReady
All pending content is now ready.
This event signals that all queued content downloads from the last sync run have either completed or failed.
It will only be emitted after a Self::SyncFinished
event, never before.
Receiving this event does not guarantee that all content in the document is available. If blobs failed to download, this event will still be emitted after all operations completed.
NeighborUp(PublicKey)
We have a new neighbor in the swarm.
NeighborDown(PublicKey)
We lost a neighbor in the swarm.
SyncFinished(SyncEvent)
A set-reconciliation sync finished.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for LiveEvent
impl<'de> Deserialize<'de> for LiveEvent
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>,
impl Eq for LiveEvent
impl StructuralPartialEq for LiveEvent
Auto Trait Implementations§
impl !Freeze for LiveEvent
impl RefUnwindSafe for LiveEvent
impl Send for LiveEvent
impl Sync for LiveEvent
impl Unpin for LiveEvent
impl UnwindSafe for LiveEvent
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
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
key
and return true
if they are equal.