Enum miniz_oxide::MZFlush
source · #[repr(i32)]pub enum MZFlush {
None = 0,
Partial = 1,
Sync = 2,
Full = 3,
Finish = 4,
Block = 5,
}
Expand description
A list of flush types.
See http://www.bolet.org/~pornin/deflate-flush.html for more in-depth info.
Variants§
None = 0
Don’t force any flushing. Used when more input data is expected.
Partial = 1
Zlib partial flush.
Currently treated as Sync
.
Sync = 2
Finish compressing the currently buffered data, and output an empty raw block. Has no use in decompression.
Full = 3
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 = 4
Attempt to flush the remaining data and end the stream.
Block = 5
Not implemented.
Implementations§
Trait Implementations§
source§impl PartialEq for MZFlush
impl PartialEq for MZFlush
impl Copy for MZFlush
impl Eq for MZFlush
impl StructuralPartialEq for MZFlush
Auto Trait Implementations§
impl Freeze for MZFlush
impl RefUnwindSafe for MZFlush
impl Send for MZFlush
impl Sync for MZFlush
impl Unpin for MZFlush
impl UnwindSafe for MZFlush
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: Copy,
impl<T> CloneToUninit for Twhere
T: Copy,
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
)source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)