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: Key
Key being checked
nodes_queried: usize
Number of nodes queried
nodes_responded: usize
Number of nodes that responded
records_found: usize
Number of records found
consistent: bool
Whether all records are consistent
canonical_record: Option<Record>
The canonical record (if any)
conflicts: Vec<(PeerId, Record)>
Conflicting records found
replication_factor: usize
Expected 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§const fn clone_from(&mut self, source: &Self)
const 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