pub enum DocsCodecError {
BadMagic,
UnsupportedVersion(u8),
Truncated,
InvalidCodeLengths,
InvalidSymbol,
InvalidDistance,
LengthMismatch,
PageCountMismatch,
InvalidPayload(String),
}Expand description
Typed failure taxonomy for euv-docs payload compression and site bundle unpacking.
Variants§
BadMagic
The stream does not start with the EUVZ magic prefix.
UnsupportedVersion(u8)
The stream declares an unsupported format version.
Truncated
The stream ended before all declared data was decoded.
InvalidCodeLengths
A block header carries an over-subscribed or empty Huffman code.
InvalidSymbol
The bit stream contains a symbol that maps to no valid code.
InvalidDistance
A back-reference points before the start of the decoded output.
LengthMismatch
The decoded byte count does not match the declared original length.
PageCountMismatch
The packed page list does not align with the plaintext page index.
InvalidPayload(String)
The shell JSON or decoded page JSON failed to (de)serialize.
Trait Implementations§
Source§impl Clone for DocsCodecError
impl Clone for DocsCodecError
Source§impl Debug for DocsCodecError
impl Debug for DocsCodecError
Source§impl Display for DocsCodecError
Human-readable diagnostic formatting for DocsCodecError.
impl Display for DocsCodecError
Human-readable diagnostic formatting for DocsCodecError.
impl Eq for DocsCodecError
Source§impl PartialEq for DocsCodecError
impl PartialEq for DocsCodecError
impl StructuralPartialEq for DocsCodecError
Auto Trait Implementations§
impl Forget for DocsCodecError
impl Freeze for DocsCodecError
impl Move for DocsCodecError
impl RefUnwindSafe for DocsCodecError
impl Send for DocsCodecErrorwhere
RawVecInner: Send,
impl Sync for DocsCodecErrorwhere
RawVecInner: Sync,
impl Unpin for DocsCodecError
impl UnsafeUnpin for DocsCodecError
impl UnwindSafe for DocsCodecErrorwhere
RawVecInner: UnwindSafe,
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.