pub enum CheckpointError {
Io(Error),
Parse(Error),
HashMismatch {
expected: String,
actual: String,
},
ContentMismatch {
expected: String,
actual: String,
},
AddressMismatch {
expected: String,
found: String,
},
}Expand description
A checkpoint load/verify failure.
Variants§
Io(Error)
Parse(Error)
HashMismatch
The stored state_hash does not recompute from the stored state —
tampering, corruption, or a fold-determinism bug. Never fold it.
ContentMismatch
The stored checkpoint_hash does not recompute from the whole
record — a tampered frontier/scopes (or a forged address). Never
fold or anchor on it.
AddressMismatch
The file’s name is not the record’s content address — a renamed, swapped, or wrongly-stored checkpoint file.
Trait Implementations§
Source§impl Debug for CheckpointError
impl Debug for CheckpointError
Source§impl Display for CheckpointError
impl Display for CheckpointError
Source§impl Error for CheckpointError
impl Error for CheckpointError
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 From<CheckpointError> for SessionError
impl From<CheckpointError> for SessionError
Source§fn from(e: CheckpointError) -> Self
fn from(e: CheckpointError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl !RefUnwindSafe for CheckpointError
impl !UnwindSafe for CheckpointError
impl Freeze for CheckpointError
impl Send for CheckpointError
impl Sync for CheckpointError
impl Unpin for CheckpointError
impl UnsafeUnpin for CheckpointError
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