[][src]Enum lzham::compress::CompressionStatus

pub enum CompressionStatus {
    NotFinished,
    NeedsMoreInput,
    HasMoreOutput,
    Success,
    Failed,
    FailedInitialization,
    InvalidParameter,
    OutputBufferTooSmall,
}

The status of compression.

Variants

NotFinished
NeedsMoreInput
HasMoreOutput
Success
Failed
FailedInitialization
InvalidParameter
OutputBufferTooSmall

Implementations

impl CompressionStatus[src]

pub fn is_success(&self) -> bool[src]

Whether the status is of success or not.

pub fn is_success_or_first_failure(&self) -> bool[src]

Whether the status is success or first failure code.

If failure, it cannot be recovered.

Trait Implementations

impl Clone for CompressionStatus[src]

impl Copy for CompressionStatus[src]

impl Debug for CompressionStatus[src]

Auto Trait Implementations

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.