pub enum PruneLedgerError {
Store(DurabilityError),
Unreadable {
key: String,
detail: String,
},
Defect {
key: String,
error: PruneProofError,
},
}Expand description
A prune ledger that cannot be read whole.
Variants§
Store(DurabilityError)
The store refused the read.
Unreadable
A ledger key holds bytes that are not a receipt.
Defect
A receipt that does not prove its own cut: a named defect, never silently accepted.
Trait Implementations§
Source§impl Debug for PruneLedgerError
impl Debug for PruneLedgerError
Source§impl Display for PruneLedgerError
impl Display for PruneLedgerError
Source§impl Error for PruneLedgerError
impl Error for PruneLedgerError
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<DurabilityError> for PruneLedgerError
impl From<DurabilityError> for PruneLedgerError
Source§fn from(source: DurabilityError) -> Self
fn from(source: DurabilityError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl !RefUnwindSafe for PruneLedgerError
impl !UnwindSafe for PruneLedgerError
impl Freeze for PruneLedgerError
impl Send for PruneLedgerError
impl Sync for PruneLedgerError
impl Unpin for PruneLedgerError
impl UnsafeUnpin for PruneLedgerError
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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