[][src]Enum flac_bound::FlacEncoderState

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

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

impl Clone for FlacEncoderState[src][+]

impl Copy for FlacEncoderState[src]

impl Debug for FlacEncoderState[src][+]

impl Eq for FlacEncoderState[src]

impl Hash for FlacEncoderState[src][+]

impl Into<u32> for FlacEncoderState[src][+]

impl Ord for FlacEncoderState[src][+]

impl PartialEq<FlacEncoderState> for FlacEncoderState[src][+]

impl PartialOrd<FlacEncoderState> for FlacEncoderState[src][+]

impl StructuralEq for FlacEncoderState[src]

impl StructuralPartialEq for FlacEncoderState[src]

impl TryFrom<u32> for FlacEncoderState[src][+]

type Error = ()

The type returned in the event of a conversion error.

Auto Trait Implementations

impl RefUnwindSafe for FlacEncoderState

impl Send for FlacEncoderState

impl Sync for FlacEncoderState

impl Unpin for FlacEncoderState

impl UnwindSafe for FlacEncoderState

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.