pub enum FlacDecoderErrorCode {
StreamDecoderSearchForMetadata = 0,
StreamDecoderReadMetadata = 1,
StreamDecoderSearchForFrameSync = 2,
StreamDecoderReadFrame = 3,
StreamDecoderEndOfStream = 4,
StreamDecoderOggError = 5,
StreamDecoderSeekError = 6,
StreamDecoderAborted = 7,
StreamDecoderMemoryAllocationError = 8,
StreamDecoderUninitialized = 9,
}Variants§
StreamDecoderSearchForMetadata = 0
- The decoder is ready to search for metadata.
StreamDecoderReadMetadata = 1
- The decoder is ready to or is in the process of reading metadata.
StreamDecoderSearchForFrameSync = 2
- The decoder is ready to or is in the process of searching for the frame sync code.
StreamDecoderReadFrame = 3
- The decoder is ready to or is in the process of reading a frame.
StreamDecoderEndOfStream = 4
- The decoder has reached the end of the stream.
StreamDecoderOggError = 5
- An error occurred in the underlying Ogg layer.
StreamDecoderSeekError = 6
- An error occurred while seeking. The decoder must be flushed with FLAC__stream_decoder_flush() or reset with FLAC__stream_decoder_reset() before decoding can continue.
StreamDecoderAborted = 7
- The decoder was aborted by the read or write callback.
StreamDecoderMemoryAllocationError = 8
- An error occurred allocating memory. The decoder is in an invalid state and can no longer be used.
StreamDecoderUninitialized = 9
- The decoder is in the uninitialized state; one of the FLAC__stream_decoder_init_*() functions must be called before samples can be processed.
Trait Implementations§
Source§impl Clone for FlacDecoderErrorCode
impl Clone for FlacDecoderErrorCode
Source§fn clone(&self) -> FlacDecoderErrorCode
fn clone(&self) -> FlacDecoderErrorCode
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 FlacDecoderErrorCode
impl Debug for FlacDecoderErrorCode
Source§impl Display for FlacDecoderErrorCode
impl Display for FlacDecoderErrorCode
Source§impl Error for FlacDecoderErrorCode
impl Error for FlacDecoderErrorCode
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 FlacDecoderErrorCode
impl From<u32> for FlacDecoderErrorCode
impl Copy for FlacDecoderErrorCode
Auto Trait Implementations§
impl Freeze for FlacDecoderErrorCode
impl RefUnwindSafe for FlacDecoderErrorCode
impl Send for FlacDecoderErrorCode
impl Sync for FlacDecoderErrorCode
impl Unpin for FlacDecoderErrorCode
impl UnwindSafe for FlacDecoderErrorCode
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