pub enum IntegrityError {
NotInitialized,
AlreadyInitialized,
ChecksumMismatch,
VersionMismatch {
key: String,
expected: u64,
actual: u64,
},
CorruptionDetected,
ChecksumComputationDisabled,
VersionIncrementDisabled,
InvalidDataFormat,
OperationFailed(String),
}Expand description
Error types for data integrity operations
Variants§
NotInitialized
System not initialized
AlreadyInitialized
System already initialized
ChecksumMismatch
Checksum mismatch
VersionMismatch
Version mismatch
CorruptionDetected
Corruption detected
ChecksumComputationDisabled
Checksum computation disabled
VersionIncrementDisabled
Version increment disabled
InvalidDataFormat
Invalid data format
OperationFailed(String)
Operation failed
Trait Implementations§
Source§impl Clone for IntegrityError
impl Clone for IntegrityError
Source§fn clone(&self) -> IntegrityError
fn clone(&self) -> IntegrityError
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 Debug for IntegrityError
impl Debug for IntegrityError
Source§impl Display for IntegrityError
impl Display for IntegrityError
Source§impl Error for IntegrityError
impl Error for IntegrityError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
Source§impl From<IntegrityError> for ReliabilityError
impl From<IntegrityError> for ReliabilityError
Source§fn from(e: IntegrityError) -> Self
fn from(e: IntegrityError) -> Self
Converts to this type from the input type.
Source§impl PartialEq for IntegrityError
impl PartialEq for IntegrityError
impl Eq for IntegrityError
impl StructuralPartialEq for IntegrityError
Auto Trait Implementations§
impl Freeze for IntegrityError
impl RefUnwindSafe for IntegrityError
impl Send for IntegrityError
impl Sync for IntegrityError
impl Unpin for IntegrityError
impl UnwindSafe for IntegrityError
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