Enum flac_bound::FlacEncoderState
source · [−]#[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
sourceimpl Clone for FlacEncoderState
impl Clone for FlacEncoderState
sourcefn clone(&self) -> FlacEncoderState
fn clone(&self) -> FlacEncoderState
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for FlacEncoderState
impl Debug for FlacEncoderState
sourceimpl Hash for FlacEncoderState
impl Hash for FlacEncoderState
sourceimpl Into<u32> for FlacEncoderState
impl Into<u32> for FlacEncoderState
sourcefn into(self) -> FLAC__StreamEncoderState
fn into(self) -> FLAC__StreamEncoderState
Converts this type into the (usually inferred) input type.
sourceimpl Ord for FlacEncoderState
impl Ord for FlacEncoderState
sourceimpl PartialEq<FlacEncoderState> for FlacEncoderState
impl PartialEq<FlacEncoderState> for FlacEncoderState
sourceimpl PartialOrd<FlacEncoderState> for FlacEncoderState
impl PartialOrd<FlacEncoderState> for FlacEncoderState
sourcefn partial_cmp(&self, other: &FlacEncoderState) -> Option<Ordering>
fn partial_cmp(&self, other: &FlacEncoderState) -> Option<Ordering>
This method returns an ordering between self
and other
values if one exists. Read more
1.0.0 · sourcefn lt(&self, other: &Rhs) -> bool
fn lt(&self, other: &Rhs) -> bool
This method tests less than (for self
and other
) and is used by the <
operator. Read more
1.0.0 · sourcefn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
sourceimpl TryFrom<u32> for FlacEncoderState
impl TryFrom<u32> for FlacEncoderState
sourcefn try_from(raw: FLAC__StreamEncoderState) -> Result<FlacEncoderState, ()>
fn try_from(raw: FLAC__StreamEncoderState) -> Result<FlacEncoderState, ()>
Performs the conversion.
impl Copy for FlacEncoderState
impl Eq for FlacEncoderState
impl StructuralEq for FlacEncoderState
impl StructuralPartialEq for FlacEncoderState
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
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more