pub enum FlacEncoderErrorCode {
StreamEncoderOk = 0,
StreamEncoderUninitialized = 1,
StreamEncoderOggError = 2,
StreamEncoderVerifyDecoderError = 3,
StreamEncoderVerifyMismatchInAudioData = 4,
StreamEncoderClientError = 5,
StreamEncoderIOError = 6,
StreamEncoderFramingError = 7,
StreamEncoderMemoryAllocationError = 8,
}Expand description
§The error code for FlacEncoderError
Variants§
StreamEncoderOk = 0
- The encoder is in the normal OK state and samples can be processed.
StreamEncoderUninitialized = 1
- The encoder is in the uninitialized state; one of the FLAC__stream_encoder_init_*() functions must be called before samples can be processed.
StreamEncoderOggError = 2
- An error occurred in the underlying Ogg layer.
StreamEncoderVerifyDecoderError = 3
- An error occurred in the underlying verify stream decoder; check FLAC__stream_encoder_get_verify_decoder_state().
StreamEncoderVerifyMismatchInAudioData = 4
- The verify decoder detected a mismatch between the original audio signal and the decoded audio signal.
StreamEncoderClientError = 5
- One of the closures returned a fatal error.
StreamEncoderIOError = 6
- An I/O error occurred while opening/reading/writing a file.
StreamEncoderFramingError = 7
- An error occurred while writing the stream; usually, the
on_write()returned an error.
StreamEncoderMemoryAllocationError = 8
- Memory allocation failed
Trait Implementations§
Source§impl Clone for FlacEncoderErrorCode
impl Clone for FlacEncoderErrorCode
Source§fn clone(&self) -> FlacEncoderErrorCode
fn clone(&self) -> FlacEncoderErrorCode
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for FlacEncoderErrorCode
impl Debug for FlacEncoderErrorCode
Source§impl Display for FlacEncoderErrorCode
impl Display for FlacEncoderErrorCode
Source§impl Error for FlacEncoderErrorCode
impl Error for FlacEncoderErrorCode
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
Source§impl From<u32> for FlacEncoderErrorCode
impl From<u32> for FlacEncoderErrorCode
impl Copy for FlacEncoderErrorCode
Auto Trait Implementations§
impl Freeze for FlacEncoderErrorCode
impl RefUnwindSafe for FlacEncoderErrorCode
impl Send for FlacEncoderErrorCode
impl Sync for FlacEncoderErrorCode
impl Unpin for FlacEncoderErrorCode
impl UnwindSafe for FlacEncoderErrorCode
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more