#[non_exhaustive]pub enum IncrementalError {
Kel(KelError),
ChainContinuity {
expected: Said,
actual: Said,
},
SequenceError {
expected: u64,
actual: u64,
},
MalformedSequence {
raw: String,
},
InvalidEventType(String),
NonLinearHistory {
commit: String,
parent_count: usize,
},
MissingParent {
commit: String,
},
}Expand description
Errors specific to incremental validation. These are hard errors that indicate KEL corruption, not cache problems.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Kel(KelError)
ChainContinuity
SequenceError
MalformedSequence
InvalidEventType(String)
NonLinearHistory
MissingParent
Trait Implementations§
Source§impl AuthsErrorInfo for IncrementalError
impl AuthsErrorInfo for IncrementalError
Source§fn error_code(&self) -> &'static str
fn error_code(&self) -> &'static str
Returns a unique error code string for this error variant.
Source§fn suggestion(&self) -> Option<&'static str>
fn suggestion(&self) -> Option<&'static str>
Returns an optional actionable suggestion for resolving the error.
Source§impl Debug for IncrementalError
impl Debug for IncrementalError
Source§impl Display for IncrementalError
impl Display for IncrementalError
Source§impl Error for IncrementalError
impl Error for IncrementalError
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()
Auto Trait Implementations§
impl Freeze for IncrementalError
impl RefUnwindSafe for IncrementalError
impl Send for IncrementalError
impl Sync for IncrementalError
impl Unpin for IncrementalError
impl UnsafeUnpin for IncrementalError
impl UnwindSafe for IncrementalError
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