pub enum BzzError {
TooShort,
InvalidBlockSize,
InvalidBwtIndex,
ZpError,
MissingMarker,
BlockSizeTooLarge(usize),
OutputTooLarge,
}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.
BlockSizeTooLarge(usize)
A single block’s decoded size exceeds the safety limit (4 MB).
OutputTooLarge
The total decompressed output exceeds the safety limit (256 MB).
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<ZpError> for BzzError
Map ZP-coder init errors into BzzError so callers using ? keep working.
impl From<ZpError> for BzzError
Map ZP-coder init errors into BzzError so callers using ? keep working.
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