pub enum IntegrityError {
SequenceGap {
expected: u64,
actual: u64,
},
HashMismatch {
expected: [u8; 32],
actual: [u8; 32],
},
GenesisRootMismatch {
expected: [u8; 32],
actual: [u8; 32],
},
SerializationError(String),
LogTruncated {
last_seen: u64,
},
LogCorrupted {
sequence: u64,
},
}Expand description
Errors related to state integrity
Variants§
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 PassiveError
impl From<IntegrityError> for PassiveError
Source§fn from(source: IntegrityError) -> Self
fn from(source: IntegrityError) -> Self
Converts to this type from the input type.
Source§impl From<IntegrityError> for SigningServiceError
impl From<IntegrityError> for SigningServiceError
Source§fn from(source: IntegrityError) -> Self
fn from(source: IntegrityError) -> Self
Converts to this type from the input type.
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