pub enum GzipError {
InputLimit {
actual: usize,
limit: usize,
},
Decode(ArtifactError),
TrailingData,
}Expand description
A gzip input, decoding or complete-consumption failure.
Variants§
InputLimit
Complete compressed input exceeds its allowance before decoding.
Fields
Decode(ArtifactError)
Gzip decoding, payload integrity, decoded size or allocation failed.
TrailingData
Bytes follow the first member, including another gzip member.
Trait Implementations§
Source§impl Error for GzipError
impl Error for GzipError
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 !RefUnwindSafe for GzipError
impl !UnwindSafe for GzipError
impl Freeze for GzipError
impl Send for GzipError
impl Sync for GzipError
impl Unpin for GzipError
impl UnsafeUnpin for GzipError
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