Enum miniz_oxide::MZFlush
source · [−]#[repr(i32)]
pub enum MZFlush {
None,
Partial,
Sync,
Full,
Finish,
Block,
}
Expand description
A list of flush types.
See http://www.bolet.org/~pornin/deflate-flush.html for more in-depth info.
Variants
None
Don’t force any flushing. Used when more input data is expected.
Partial
Zlib partial flush.
Currently treated as [Sync
].
Sync
Finish compressing the currently buffered data, and output an empty raw block. Has no use in decompression.
Full
Same as [Sync
], but resets the compression dictionary so that further compressed
data does not depend on data compressed before the flush.
Has no use in decompression, and is an error to supply in that case.
Finish
Attempt to flush the remaining data and end the stream.
Block
Not implemented.
Implementations
Trait Implementations
sourceimpl From<MZFlush> for TDEFLFlush
impl From<MZFlush> for TDEFLFlush
sourceimpl Hash for MZFlush
impl Hash for MZFlush
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 moreimpl Copy for MZFlush
impl Eq for MZFlush
impl StructuralEq for MZFlush
impl StructuralPartialEq for MZFlush
Auto Trait Implementations
impl RefUnwindSafe for MZFlush
impl Send for MZFlush
impl Sync for MZFlush
impl Unpin for MZFlush
impl UnwindSafe for MZFlush
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