Enum MZFlush

enum MZFlush

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

impl MZFlush

fn new(flush: i32) -> Result<Self, MZError>

Create an MZFlush value from an integer value.

Returns MZError::Param on invalid values.

impl Clone for MZFlush

fn clone(self: &Self) -> MZFlush

impl Copy for MZFlush

impl Debug for MZFlush

fn fmt(self: &Self, f: &mut Formatter<'_>) -> Result

impl Eq for MZFlush

impl Freeze for MZFlush

impl Hash for MZFlush

fn hash<__H: $crate::hash::Hasher>(self: &Self, state: &mut __H)

impl PartialEq for MZFlush

fn eq(self: &Self, other: &MZFlush) -> bool

impl RefUnwindSafe for MZFlush

impl Send for MZFlush

impl StructuralPartialEq for MZFlush

impl Sync for MZFlush

impl Unpin for MZFlush

impl UnsafeUnpin for MZFlush

impl UnwindSafe for MZFlush

impl<T> Any for MZFlush

fn type_id(self: &Self) -> TypeId

impl<T> Borrow for MZFlush

fn borrow(self: &Self) -> &T

impl<T> BorrowMut for MZFlush

fn borrow_mut(self: &mut Self) -> &mut T

impl<T> CloneToUninit for MZFlush

unsafe fn clone_to_uninit(self: &Self, dest: *mut u8)

impl<T> From for MZFlush

fn from(t: T) -> T

Returns the argument unchanged.

impl<T> ToOwned for MZFlush

fn to_owned(self: &Self) -> T
fn clone_into(self: &Self, target: &mut T)

impl<T, U> Into for MZFlush

fn into(self: Self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of [From]<T> for U chooses to do.

impl<T, U> TryFrom for MZFlush

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

impl<T, U> TryInto for MZFlush

fn try_into(self: Self) -> Result<U, <U as TryFrom<T>>::Error>