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.
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
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
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