pub enum BzzError {
TooShort,
InvalidBlockSize,
InvalidBwtIndex,
ZpError,
MissingMarker,
}Expand description
BZZ compression decoding errors.
Variants§
TooShort
Input is too short to be a valid BZZ stream (fewer than 2 bytes).
InvalidBlockSize
The block size field in the BZZ stream is invalid or out of range.
InvalidBwtIndex
The BWT sort index embedded in the stream is out of range.
ZpError
The ZP arithmetic coder encountered an error.
MissingMarker
The BWT block did not contain an end-of-block marker.
Trait Implementations§
Source§impl Error for BzzError
impl Error for BzzError
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<BzzError> for AnnotationError
impl From<BzzError> for AnnotationError
Source§impl From<BzzError> for MetadataError
impl From<BzzError> for MetadataError
Source§impl From<BzzError> for RenderError
impl From<BzzError> for RenderError
impl Eq for BzzError
impl StructuralPartialEq for BzzError
Auto Trait Implementations§
impl Freeze for BzzError
impl RefUnwindSafe for BzzError
impl Send for BzzError
impl Sync for BzzError
impl Unpin for BzzError
impl UnsafeUnpin for BzzError
impl UnwindSafe for BzzError
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> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more