pub enum IntegrityIssue {
CidMismatch {
cid: String,
computed_cid: String,
},
SizeViolation {
cid: String,
expected: u64,
actual: u64,
},
CorruptionMarker {
cid: String,
offset: usize,
},
MissingBlock {
cid: String,
},
}Expand description
Describes a single integrity problem found during a block scan.
Variants§
CidMismatch
The CID stored in the registry does not match the CID computed from the data presented at scan time.
Fields
SizeViolation
The size of the actual data does not match the expected size stored
in the registry, or exceeds the configured max_size_bytes.
Fields
CorruptionMarker
The actual data does not begin with the configured magic bytes, indicating likely corruption.
Fields
MissingBlock
No registry entry was found for the requested CID.
Trait Implementations§
Source§impl Clone for IntegrityIssue
impl Clone for IntegrityIssue
Source§fn clone(&self) -> IntegrityIssue
fn clone(&self) -> IntegrityIssue
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 IntegrityIssue
impl Debug for IntegrityIssue
Source§impl PartialEq for IntegrityIssue
impl PartialEq for IntegrityIssue
Source§fn eq(&self, other: &IntegrityIssue) -> bool
fn eq(&self, other: &IntegrityIssue) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for IntegrityIssue
Auto Trait Implementations§
impl Freeze for IntegrityIssue
impl RefUnwindSafe for IntegrityIssue
impl Send for IntegrityIssue
impl Sync for IntegrityIssue
impl Unpin for IntegrityIssue
impl UnsafeUnpin for IntegrityIssue
impl UnwindSafe for IntegrityIssue
Blanket Implementations§
impl<T> Allocation for T
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more