pub enum ProofError {
Io(Error),
InvalidMagic {
found: [u8; 8],
},
UnsupportedVersion {
version: u32,
},
UnknownKind(u8),
ForwardReference {
referencing: u32,
missing: u32,
},
InvalidUtf8(String),
EmptyLog,
FieldTooLarge(u32),
}Expand description
Errors that can occur while replaying a proof log.
Variants§
Io(Error)
Underlying I/O failure.
InvalidMagic
File did not begin with the expected magic bytes.
UnsupportedVersion
The log file was written by an incompatible format version.
UnknownKind(u8)
An unknown record kind byte was encountered.
ForwardReference
A premise ID referenced a node that has not been seen yet.
Fields
InvalidUtf8(String)
A byte slice could not be decoded as UTF-8.
EmptyLog
The replay produced zero steps (empty or truncated file).
FieldTooLarge(u32)
A length-prefixed field had an unreasonably large value (guards OOM).
Trait Implementations§
Source§impl Debug for ProofError
impl Debug for ProofError
Source§impl Display for ProofError
impl Display for ProofError
Source§impl Error for ProofError
impl Error for ProofError
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 ProofError
impl !RefUnwindSafe for ProofError
impl Send for ProofError
impl Sync for ProofError
impl Unpin for ProofError
impl UnsafeUnpin for ProofError
impl !UnwindSafe for ProofError
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