Enum miniz_oxide::deflate::core::TDEFLStatus
source · [−]#[repr(i32)]
pub enum TDEFLStatus {
BadParam,
PutBufFailed,
Okay,
Done,
}
Expand description
Return status of compression.
Variants
BadParam
Usage error.
This indicates that either the CompressorOxide
experienced a previous error, or the
stream has already been TDEFLFlush::Finish
’d.
PutBufFailed
Error putting data into output buffer.
This usually indicates a too-small buffer.
Okay
Compression succeeded normally.
Done
Compression succeeded and the deflate stream was ended.
This is the result of calling compression with TDEFLFlush::Finish
.
Trait Implementations
sourceimpl Clone for TDEFLStatus
impl Clone for TDEFLStatus
sourcefn clone(&self) -> TDEFLStatus
fn clone(&self) -> TDEFLStatus
Returns a copy of the value. Read more
1.0.0const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Debug for TDEFLStatus
impl Debug for TDEFLStatus
sourceimpl Hash for TDEFLStatus
impl Hash for TDEFLStatus
sourcefn hash<__H: Hasher>(&self, state: &mut __H)
fn hash<__H: Hasher>(&self, state: &mut __H)
Feeds this value into the given [
Hasher
]. Read more1.3.0fn hash_slice<H>(data: &[Self], state: &mut H)where
H: Hasher,
fn hash_slice<H>(data: &[Self], state: &mut H)where
H: Hasher,
Feeds a slice of this type into the given [
Hasher
]. Read moresourceimpl PartialEq<TDEFLStatus> for TDEFLStatus
impl PartialEq<TDEFLStatus> for TDEFLStatus
sourcefn eq(&self, other: &TDEFLStatus) -> bool
fn eq(&self, other: &TDEFLStatus) -> bool
impl Copy for TDEFLStatus
impl Eq for TDEFLStatus
impl StructuralEq for TDEFLStatus
impl StructuralPartialEq for TDEFLStatus
Auto Trait Implementations
impl RefUnwindSafe for TDEFLStatus
impl Send for TDEFLStatus
impl Sync for TDEFLStatus
impl Unpin for TDEFLStatus
impl UnwindSafe for TDEFLStatus
Blanket Implementations
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstablefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
impl<T> ToOwned for Twhere
T: Clone,
impl<T> ToOwned for Twhere
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
fn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
Uses borrowed data to replace owned data, usually by cloning. Read more