pub struct RecordCollision<D> {
pub id: RecordId,
pub local: D,
pub remote: D,
}Expand description
One record ID held with two different payloads.
In EventLog::collisions, local is the payload this log admitted and
remote the payload a peer holds. In a CollisionReport the perspective
is the reporter’s: local is the reporter’s payload and remote is the
payload it was offered.
Fields§
§id: RecordId§local: D§remote: DTrait Implementations§
Source§impl<D: Clone> Clone for RecordCollision<D>
impl<D: Clone> Clone for RecordCollision<D>
Source§fn clone(&self) -> RecordCollision<D>
fn clone(&self) -> RecordCollision<D>
Returns a duplicate 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<D: Debug> Debug for RecordCollision<D>
impl<D: Debug> Debug for RecordCollision<D>
Source§impl<D: PartialEq> PartialEq for RecordCollision<D>
impl<D: PartialEq> PartialEq for RecordCollision<D>
Source§fn eq(&self, other: &RecordCollision<D>) -> bool
fn eq(&self, other: &RecordCollision<D>) -> bool
Tests for
self and other values to be equal, and is used by ==.1.0.0 · Source§fn ne(&self, other: &Rhs) -> bool
fn ne(&self, other: &Rhs) -> bool
Tests for
!=. The default implementation is almost always sufficient,
and should not be overridden without very good reason.impl<D: Eq> Eq for RecordCollision<D>
impl<D> StructuralPartialEq for RecordCollision<D>
Auto Trait Implementations§
impl<D> Freeze for RecordCollision<D>where
D: Freeze,
impl<D> RefUnwindSafe for RecordCollision<D>where
D: RefUnwindSafe,
impl<D> Send for RecordCollision<D>where
D: Send,
impl<D> Sync for RecordCollision<D>where
D: Sync,
impl<D> Unpin for RecordCollision<D>where
D: Unpin,
impl<D> UnsafeUnpin for RecordCollision<D>where
D: UnsafeUnpin,
impl<D> UnwindSafe for RecordCollision<D>where
D: UnwindSafe,
Blanket Implementations§
Source§impl<T> Any for Twhere
T: 'static + ?Sized,
impl<T> Any for Twhere
T: 'static + ?Sized,
Source§fn type_id(&self) -> TypeId
fn type_id(&self) -> TypeId
Gets the
TypeId of self. Read moreSource§impl<T> Borrow<T> for Twhere
T: ?Sized,
impl<T> Borrow<T> for Twhere
T: ?Sized,
Source§fn borrow(&self) -> &T
fn borrow(&self) -> &T
Immutably borrows from an owned value. Read more
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,
Source§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)Performs copy-assignment from
self to dest. Read moreSource§impl<T, U> Into<U> for Twhere
U: From<T>,
impl<T, U> Into<U> for Twhere
U: From<T>,
Source§fn into(self) -> U
fn into(self) -> U
Calls U::from(self).
That is, this conversion is whatever the implementation of
From<T> for U chooses to do.