Enum miniz_oxide::MZFlush[][src]

#[repr(i32)]pub enum MZFlush {
    None,
    Partial,
    Sync,
    Full,
    Finish,
    Block,
}

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

impl MZFlush[src]

pub fn new(flush: i32) -> Result<Self, MZError>[src]

Create an MZFlush value from an integer value.

Returns MZError::Param on invalid values.

Trait Implementations

impl Clone for MZFlush[src]

impl Copy for MZFlush[src]

impl Debug for MZFlush[src]

impl Eq for MZFlush[src]

impl From<MZFlush> for TDEFLFlush[src]

impl Hash for MZFlush[src]

impl PartialEq<MZFlush> for MZFlush[src]

impl StructuralEq for MZFlush[src]

impl StructuralPartialEq for MZFlush[src]

Auto Trait Implementations

impl Send for MZFlush

impl Sync for MZFlush

impl Unpin for MZFlush

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.