pub enum CompressionError {
Zlib(Error),
Gzip(Error),
Brotli(Error),
Bz(Error),
Lzma(Error),
Deflate(Error),
Zstd(Error),
}
Expand description
Compression error types
Variants§
Zlib(Error)
Failed to compress or decompress data using zlib: {0}
Gzip(Error)
Failed to compress or decompress data using gzip: {0}
Brotli(Error)
Failed to compress or decompress data using brotli: {0}
Bz(Error)
Failed to compress or decompress data using bzip2: {0}
Lzma(Error)
Failed to compress or decompress data using lzma: {0}
Deflate(Error)
Failed to compress or decompress data using deflate: {0}
Zstd(Error)
Failed to compress or decompress data using zstd: {0}
Trait Implementations§
Source§impl Debug for CompressionError
impl Debug for CompressionError
Source§impl Display for CompressionError
impl Display for CompressionError
Source§impl Error for CompressionError
impl Error for CompressionError
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<CompressionError> for Error
impl From<CompressionError> for Error
Source§fn from(source: CompressionError) -> Self
fn from(source: CompressionError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for CompressionError
impl !RefUnwindSafe for CompressionError
impl Send for CompressionError
impl Sync for CompressionError
impl Unpin for CompressionError
impl !UnwindSafe for CompressionError
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