pub enum SyncEvent {
SyncStarted(PeerId),
SyncCompleted(PeerId),
ReceivedUpdate {
peer_id: PeerId,
document_id: String,
},
SentUpdate {
peer_id: PeerId,
document_id: String,
},
SyncError {
peer_id: PeerId,
error: String,
},
}Expand description
Events emitted by the sync manager.
Variants§
SyncStarted(PeerId)
Sync started with a peer.
SyncCompleted(PeerId)
Sync completed with a peer.
ReceivedUpdate
Received update from peer.
SentUpdate
Sent update to peer.
SyncError
Sync error occurred.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for SyncEvent
impl RefUnwindSafe for SyncEvent
impl Send for SyncEvent
impl Sync for SyncEvent
impl Unpin for SyncEvent
impl UnsafeUnpin for SyncEvent
impl UnwindSafe for SyncEvent
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