pub struct SyncReport {
pub peer_id: String,
pub our_snapshot_hash: String,
pub peer_snapshot_hash: String,
pub conflicts: Vec<Conflict>,
pub events_appended: usize,
}Expand description
Result of one sync_with_peer pass.
Fields§
§peer_id: String§our_snapshot_hash: String§peer_snapshot_hash: String§conflicts: Vec<Conflict>§events_appended: usizeNumber of StateEvents appended to our project (1 sync event +
N conflict events).
Trait Implementations§
Source§impl Clone for SyncReport
impl Clone for SyncReport
Source§fn clone(&self) -> SyncReport
fn clone(&self) -> SyncReport
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 SyncReport
impl Debug for SyncReport
Source§impl<'de> Deserialize<'de> for SyncReport
impl<'de> Deserialize<'de> for SyncReport
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
Auto Trait Implementations§
impl Freeze for SyncReport
impl RefUnwindSafe for SyncReport
impl Send for SyncReport
impl Sync for SyncReport
impl Unpin for SyncReport
impl UnsafeUnpin for SyncReport
impl UnwindSafe for SyncReport
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