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§
source§impl From<MZFlush> for TDEFLFlush
impl From<MZFlush> for TDEFLFlush
source§impl PartialEq<MZFlush> for MZFlush
impl PartialEq<MZFlush> for MZFlush
impl 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§
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