pub enum LineFault {
NotALine(String),
VersionAhead(u64),
NotAVersion(u64),
ChainBreak,
SeqGap {
found: Seq,
expected: Seq,
},
UnknownKind(String),
NotCanonical(String),
SeqExhausted(AxError),
}Expand description
Why a line did not pass, in the order the check asks.
Variants§
NotALine(String)
The bytes do not carry a ledger envelope: torn or foreign bytes.
VersionAhead(u64)
Written by a newer build (readable_log_v answers Ahead).
NotAVersion(u64)
Below the first version any build wrote.
ChainBreak
prev does not hash the previous line.
SeqGap
The seq is not the one the chain expects.
UnknownKind(String)
An unknown kind without ig:true: a newer writer’s vocabulary.
NotCanonical(String)
A known kind whose record does not parse, or whose bytes are not what the writer would have written.
SeqExhausted(AxError)
The seq space is exhausted after this line.
Implementations§
Trait Implementations§
impl StructuralPartialEq for LineFault
Auto Trait Implementations§
impl Freeze for LineFault
impl RefUnwindSafe for LineFault
impl Send for LineFault
impl Sync for LineFault
impl Unpin for LineFault
impl UnsafeUnpin for LineFault
impl UnwindSafe for LineFault
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