Enum miniz_oxide::inflate::TINFLStatus
source · [−]#[repr(i8)]
pub enum TINFLStatus {
FailedCannotMakeProgress,
BadParam,
Adler32Mismatch,
Failed,
Done,
NeedsMoreInput,
HasMoreOutput,
}
Expand description
Return status codes.
Variants
FailedCannotMakeProgress
More input data was expected, but the caller indicated that there was more data, so the input stream is likely truncated.
BadParam
One or more of the input parameters were invalid.
Adler32Mismatch
The decompression went fine, but the adler32 checksum did not match the one provided in the header.
Failed
Failed to decompress due to invalid data.
Done
Finished decomression without issues.
NeedsMoreInput
The decompressor needs more input data to continue decompressing.
HasMoreOutput
There is still pending data that didn’t fit in the output buffer.
Implementations
sourceimpl TINFLStatus
impl TINFLStatus
pub fn from_i32(value: i32) -> Option<TINFLStatus>
Trait Implementations
sourceimpl Clone for TINFLStatus
impl Clone for TINFLStatus
sourcefn clone(&self) -> TINFLStatus
fn clone(&self) -> TINFLStatus
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for TINFLStatus
impl Debug for TINFLStatus
sourceimpl Hash for TINFLStatus
impl Hash for TINFLStatus
sourceimpl PartialEq<TINFLStatus> for TINFLStatus
impl PartialEq<TINFLStatus> for TINFLStatus
impl Copy for TINFLStatus
impl Eq for TINFLStatus
impl StructuralEq for TINFLStatus
impl StructuralPartialEq for TINFLStatus
Auto Trait Implementations
impl RefUnwindSafe for TINFLStatus
impl Send for TINFLStatus
impl Sync for TINFLStatus
impl Unpin for TINFLStatus
impl UnwindSafe for TINFLStatus
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcepub fn to_owned(&self) -> T
pub fn to_owned(&self) -> T
Creates owned data from borrowed data, usually by cloning. Read more
sourcepub fn clone_into(&self, target: &mut T)
pub fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more