pub enum DeflateError {
StreamError = -2,
DataError = -3,
MemError = -4,
}Expand description
Errors that can occur when compressing.
Variants§
StreamError = -2
The Deflate is in an inconsistent state, most likely
due to an invalid configuration parameter.
DataError = -3
The input is not a valid deflate stream.
MemError = -4
A memory allocation failed.
Implementations§
Trait Implementations§
Source§impl Clone for DeflateError
impl Clone for DeflateError
Source§fn clone(&self) -> DeflateError
fn clone(&self) -> DeflateError
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for DeflateError
impl Debug for DeflateError
Source§impl From<DeflateError> for ReturnCode
impl From<DeflateError> for ReturnCode
Source§fn from(value: DeflateError) -> Self
fn from(value: DeflateError) -> Self
Converts to this type from the input type.
Source§impl PartialEq for DeflateError
impl PartialEq for DeflateError
impl Copy for DeflateError
impl Eq for DeflateError
impl StructuralPartialEq for DeflateError
Auto Trait Implementations§
impl Freeze for DeflateError
impl RefUnwindSafe for DeflateError
impl Send for DeflateError
impl Sync for DeflateError
impl Unpin for DeflateError
impl UnwindSafe for DeflateError
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