pub struct ConsistencyReport {
pub key: Key,
pub nodes_queried: usize,
pub nodes_responded: usize,
pub records_found: usize,
pub consistent: bool,
pub canonical_record: Option<Record>,
pub conflicts: Vec<(PeerId, Record)>,
pub replication_factor: usize,
}Expand description
Consistency check report
Fields§
§key: KeyKey being checked
nodes_queried: usizeNumber of nodes queried
nodes_responded: usizeNumber of nodes that responded
records_found: usizeNumber of records found
consistent: boolWhether all records are consistent
canonical_record: Option<Record>The canonical record (if any)
conflicts: Vec<(PeerId, Record)>Conflicting records found
replication_factor: usizeExpected replication factor
Trait Implementations§
Source§impl Clone for ConsistencyReport
impl Clone for ConsistencyReport
Source§fn clone(&self) -> ConsistencyReport
fn clone(&self) -> ConsistencyReport
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 moreAuto Trait Implementations§
impl Freeze for ConsistencyReport
impl RefUnwindSafe for ConsistencyReport
impl Send for ConsistencyReport
impl Sync for ConsistencyReport
impl Unpin for ConsistencyReport
impl UnwindSafe for ConsistencyReport
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