pub enum CompactError {
UnknownVersion(u8),
Truncated,
TrailingBytes,
Malformed(&'static str),
Evidence(CheckError),
}Expand description
Bytes State::from_compact refuses. A
refusal restores nothing; the host re-tracks the transaction.
Variants§
UnknownVersion(u8)
The version byte is not one this crate reads.
Truncated
The bytes end inside a field.
TrailingBytes
Bytes remain after the last field.
Malformed(&'static str)
A tag, flag, varint, id or string the encoder never writes.
Evidence(CheckError)
The stored proof record does not hold together: its path does not reduce, it names another transaction, or its root differs from its header’s. Nothing here consults the host’s headers.
Trait Implementations§
Source§impl Clone for CompactError
impl Clone for CompactError
Source§impl Debug for CompactError
impl Debug for CompactError
Source§impl Display for CompactError
impl Display for CompactError
impl Eq for CompactError
Source§impl Error for CompactError
impl Error for CompactError
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 CompactError
impl PartialEq for CompactError
impl StructuralPartialEq for CompactError
Auto Trait Implementations§
impl Freeze for CompactError
impl RefUnwindSafe for CompactError
impl Send for CompactError
impl Sync for CompactError
impl Unpin for CompactError
impl UnsafeUnpin for CompactError
impl UnwindSafe for CompactError
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