pub struct InflateDecodeErrors {
pub error: DecodeErrorStatus,
pub data: Vec<u8>,
}
Expand description
A struct returned when decompression fails
This struct contains two fields,
error
:Tells you the error that actually occured.data
: Gives you decoded data up until that point when the error was encountered.
One can recover data up to the error if they so wish but guarantees about data state is not given
Fields§
§error: DecodeErrorStatus
reason why decompression fails
data: Vec<u8>
Decoded data up until that decompression error
Implementations§
source§impl InflateDecodeErrors
impl InflateDecodeErrors
sourcepub fn new(error: DecodeErrorStatus, data: Vec<u8>) -> InflateDecodeErrors
pub fn new(error: DecodeErrorStatus, data: Vec<u8>) -> InflateDecodeErrors
sourcepub fn new_with_error(error: DecodeErrorStatus) -> InflateDecodeErrors
pub fn new_with_error(error: DecodeErrorStatus) -> InflateDecodeErrors
Create a new decode wrapper with an empty vector
§Arguments
error
: Error encountered during decoding.
Trait Implementations§
source§impl Debug for InflateDecodeErrors
impl Debug for InflateDecodeErrors
Auto Trait Implementations§
impl Freeze for InflateDecodeErrors
impl RefUnwindSafe for InflateDecodeErrors
impl Send for InflateDecodeErrors
impl Sync for InflateDecodeErrors
impl Unpin for InflateDecodeErrors
impl UnwindSafe for InflateDecodeErrors
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