#[repr(u32)]
pub enum FlacEncoderState {
    Ok,
    Uninitialized,
    OggError,
    VerifyDecoderError,
    VerifyMismatchInAudioData,
    ClientError,
    IoError,
    FramingError,
    MemoryAllocationError,
}
Expand description

State values for a FlacEncoder.

The encoder’s state can be obtained by calling FlacEncoder::state().

If the encoder gets into any other state besides Ok or Uninitialized, it becomes invalid for encoding and must be deleted by dropping.

Variants

Ok

The encoder is in the normal OK state and samples can be processed.

Uninitialized

The encoder is in the uninitialized state; one of the FlacEncoderConfig::init_*() functions must be called before samples can be processed.

OggError

An error occurred in the underlying Ogg layer.

VerifyDecoderError

An error occurred in the underlying verify stream decoder; check FlacEncoder::verify_decoder_state().

VerifyMismatchInAudioData

The verify decoder detected a mismatch between the original audio signal and the decoded audio signal.

ClientError

One of the callbacks returned a fatal error.

IoError

An I/O error occurred while opening/reading/writing a file. Check errno.

FramingError

An error occurred while writing the stream; usually, the write_callback returned an error.

MemoryAllocationError

Memory allocation failed.

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Feeds this value into the given Hasher. Read more

Feeds a slice of this type into the given Hasher. Read more

Converts this type into the (usually inferred) input type.

This method returns an Ordering between self and other. Read more

Compares and returns the maximum of two values. Read more

Compares and returns the minimum of two values. Read more

Restrict a value to a certain interval. Read more

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

This method returns an ordering between self and other values if one exists. Read more

This method tests less than (for self and other) and is used by the < operator. Read more

This method tests less than or equal to (for self and other) and is used by the <= operator. Read more

This method tests greater than (for self and other) and is used by the > operator. Read more

This method tests greater than or equal to (for self and other) and is used by the >= operator. Read more

The type returned in the event of a conversion error.

Performs the conversion.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

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

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.