pub enum LedgerError {
Schema,
OtherDataset,
TooManyEntries(usize),
MalformedEntry(usize),
BrokenChain(usize),
NotCanonical,
}Expand description
Why a ledger was refused (invalid_input).
Variants§
Schema
OtherDataset
TooManyEntries(usize)
MalformedEntry(usize)
An entry with no run, or more than a repeat set’s 64.
BrokenChain(usize)
Entry i’s prev is not the chain digest of entry i - 1.
NotCanonical
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