pub enum CompressorError {
InvalidData(String),
LengthMismatch {
expected: usize,
actual: usize,
},
InputTooLarge(usize),
}Expand description
Errors produced by TierCompressor.
Variants§
InvalidData(String)
The compressed data is truncated or has an invalid header.
LengthMismatch
The decompressed output does not match the expected length in the header.
InputTooLarge(usize)
The input is too large to be encoded (> 2^32 bytes).
Trait Implementations§
Source§impl Debug for CompressorError
impl Debug for CompressorError
Source§impl Display for CompressorError
impl Display for CompressorError
Source§impl Error for CompressorError
impl Error for CompressorError
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()
Auto Trait Implementations§
impl Freeze for CompressorError
impl RefUnwindSafe for CompressorError
impl Send for CompressorError
impl Sync for CompressorError
impl Unpin for CompressorError
impl UnsafeUnpin for CompressorError
impl UnwindSafe for CompressorError
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