#[repr(u32)]pub enum FlacEncoderState {
Ok = 0,
Uninitialized = 1,
OggError = 2,
VerifyDecoderError = 3,
VerifyMismatchInAudioData = 4,
ClientError = 5,
IoError = 6,
FramingError = 7,
MemoryAllocationError = 8,
}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 = 0
The encoder is in the normal OK state and samples can be processed.
Uninitialized = 1
The encoder is in the uninitialized state; one of the
FlacEncoderConfig::init_*()
functions must be called before samples can be processed.
OggError = 2
An error occurred in the underlying Ogg layer.
VerifyDecoderError = 3
An error occurred in the underlying verify stream decoder; check
FlacEncoder::verify_decoder_state().
VerifyMismatchInAudioData = 4
The verify decoder detected a mismatch between the original audio signal and the decoded audio signal.
ClientError = 5
One of the callbacks returned a fatal error.
IoError = 6
An I/O error occurred while opening/reading/writing a file. Check errno.
FramingError = 7
An error occurred while writing the stream; usually, the write_callback returned an error.
MemoryAllocationError = 8
Memory allocation failed.
Trait Implementations§
Source§impl Clone for FlacEncoderState
impl Clone for FlacEncoderState
Source§fn clone(&self) -> FlacEncoderState
fn clone(&self) -> FlacEncoderState
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreimpl Copy for FlacEncoderState
Source§impl Debug for FlacEncoderState
impl Debug for FlacEncoderState
impl Eq for FlacEncoderState
Source§impl Hash for FlacEncoderState
impl Hash for FlacEncoderState
Source§impl Into<u32> for FlacEncoderState
impl Into<u32> for FlacEncoderState
Source§fn into(self) -> FLAC__StreamEncoderState
fn into(self) -> FLAC__StreamEncoderState
Source§impl Ord for FlacEncoderState
impl Ord for FlacEncoderState
Source§fn cmp(&self, other: &FlacEncoderState) -> Ordering
fn cmp(&self, other: &FlacEncoderState) -> Ordering
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Source§impl PartialEq for FlacEncoderState
impl PartialEq for FlacEncoderState
Source§fn eq(&self, other: &FlacEncoderState) -> bool
fn eq(&self, other: &FlacEncoderState) -> bool
self and other values to be equal, and is used by ==.