#[repr(i8)]pub enum TINFLStatus {
FailedCannotMakeProgress = -4,
BadParam = -3,
Adler32Mismatch = -2,
Failed = -1,
Done = 0,
NeedsMoreInput = 1,
HasMoreOutput = 2,
}
Expand description
Return status codes.
Variants§
FailedCannotMakeProgress = -4
More input data was expected, but the caller indicated that there was more data, so the input stream is likely truncated.
BadParam = -3
One or more of the input parameters were invalid.
Adler32Mismatch = -2
The decompression went fine, but the adler32 checksum did not match the one provided in the header.
Failed = -1
Failed to decompress due to invalid data.
Done = 0
Finished decomression without issues.
NeedsMoreInput = 1
The decompressor needs more input data to continue decompressing.
HasMoreOutput = 2
There is still pending data that didn’t fit in the output buffer.
Implementations§
Source§impl TINFLStatus
impl TINFLStatus
pub fn from_i32(value: i32) -> Option<TINFLStatus>
Trait Implementations§
Source§impl Clone for TINFLStatus
impl Clone for TINFLStatus
Source§fn clone(&self) -> TINFLStatus
fn clone(&self) -> TINFLStatus
Returns a copy 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 TINFLStatus
impl Debug for TINFLStatus
Source§impl Hash for TINFLStatus
impl Hash for TINFLStatus
Source§impl PartialEq for TINFLStatus
impl PartialEq for TINFLStatus
impl Copy for TINFLStatus
impl Eq for TINFLStatus
impl StructuralPartialEq for TINFLStatus
Auto Trait Implementations§
impl Freeze for TINFLStatus
impl RefUnwindSafe for TINFLStatus
impl Send for TINFLStatus
impl Sync for TINFLStatus
impl Unpin for TINFLStatus
impl UnwindSafe for TINFLStatus
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)