pub enum FlacInternalDecoderError {
LostSync,
BadHeader,
FrameCrcMismatch,
UnparseableStream,
BadMetadata,
OutOfBounds,
}
Expand description
§The FLAC decoder internal error value for your on_error()
closure to report.
Variants§
LostSync
- An error in the stream caused the decoder to lose synchronization.
BadHeader
- The decoder encountered a corrupted frame header.
FrameCrcMismatch
- The frame’s data did not match the CRC in the footer.
UnparseableStream
- The decoder encountered reserved fields in use in the stream.
BadMetadata
- The decoder encountered a corrupted metadata block.
OutOfBounds
- The decoder encountered a otherwise valid frame in which the decoded samples exceeded the range offered by the stated bit depth.
Trait Implementations§
Source§impl Clone for FlacInternalDecoderError
impl Clone for FlacInternalDecoderError
Source§fn clone(&self) -> FlacInternalDecoderError
fn clone(&self) -> FlacInternalDecoderError
Returns a copy 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 FlacInternalDecoderError
impl Debug for FlacInternalDecoderError
Source§impl Display for FlacInternalDecoderError
impl Display for FlacInternalDecoderError
Source§impl Error for FlacInternalDecoderError
impl Error for FlacInternalDecoderError
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()
impl Copy for FlacInternalDecoderError
Auto Trait Implementations§
impl Freeze for FlacInternalDecoderError
impl RefUnwindSafe for FlacInternalDecoderError
impl Send for FlacInternalDecoderError
impl Sync for FlacInternalDecoderError
impl Unpin for FlacInternalDecoderError
impl UnwindSafe for FlacInternalDecoderError
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