pub enum AnchorHistoryVerifyError {
ReadHistory {
path: PathBuf,
source: Error,
},
Parse {
path: PathBuf,
source: AnchorParseError,
},
NonMonotonic {
path: PathBuf,
anchor_index: usize,
previous_event_count: u64,
event_count: u64,
},
Anchor {
path: PathBuf,
anchor_index: usize,
source: Box<AnchorVerifyError>,
},
}Expand description
Verification errors for an anchor history checked against a JSONL ledger.
Variants§
ReadHistory
The history file could not be opened or read.
Parse
The anchor history text did not parse as repeated v1 anchor records.
Fields
§
source: AnchorParseErrorParse failure.
NonMonotonic
A later anchor moved backwards in logical event position.
Fields
Anchor
One record in the history failed single-anchor verification.
Trait Implementations§
Source§impl Debug for AnchorHistoryVerifyError
impl Debug for AnchorHistoryVerifyError
Source§impl Display for AnchorHistoryVerifyError
impl Display for AnchorHistoryVerifyError
Source§impl Error for AnchorHistoryVerifyError
impl Error for AnchorHistoryVerifyError
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 AnchorHistoryVerifyError
impl !RefUnwindSafe for AnchorHistoryVerifyError
impl Send for AnchorHistoryVerifyError
impl Sync for AnchorHistoryVerifyError
impl Unpin for AnchorHistoryVerifyError
impl UnsafeUnpin for AnchorHistoryVerifyError
impl !UnwindSafe for AnchorHistoryVerifyError
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