pub enum LedgerError {
SequenceDiscontinuity(String),
HashMismatch(String),
LockError(String),
}Expand description
Errors returned during ledger append, retrieval, or verification operations.
Variants§
SequenceDiscontinuity(String)
Event sequence numbers are missing or out of order.
HashMismatch(String)
Computed event hash does not match recorded event hash.
LockError(String)
Mutex lock contention or thread synchronization failure.
Trait Implementations§
Source§impl Clone for LedgerError
impl Clone for LedgerError
Source§impl Debug for LedgerError
impl Debug for LedgerError
Source§impl Display for LedgerError
impl Display for LedgerError
impl Eq for LedgerError
Source§impl Error for LedgerError
impl Error for LedgerError
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 PartialEq for LedgerError
impl PartialEq for LedgerError
impl StructuralPartialEq for LedgerError
Auto Trait Implementations§
impl Freeze for LedgerError
impl RefUnwindSafe for LedgerError
impl Send for LedgerError
impl Sync for LedgerError
impl Unpin for LedgerError
impl UnsafeUnpin for LedgerError
impl UnwindSafe for LedgerError
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