pub enum CodecError {
BufferTooShort,
InvalidMagic,
CrcMismatch,
UnsupportedVersion,
InvalidHeader,
UnsupportedFeature,
HuffmanError,
BitstreamCorrupt,
UnsupportedChannels,
UnsupportedSampleRate,
InternalOverflow,
EndOfStream,
}Expand description
Error type for codec operations
Variants§
BufferTooShort
Input data too short
InvalidMagic
Invalid magic bytes or sync word
CrcMismatch
CRC check failed
UnsupportedVersion
Unsupported codec version
InvalidHeader
Invalid header field
UnsupportedFeature
Unsupported feature (e.g., floor type, residue type)
HuffmanError
Huffman decode failed
BitstreamCorrupt
Bitstream corruption
UnsupportedChannels
Unsupported channel configuration
UnsupportedSampleRate
Unsupported sample rate
InternalOverflow
Internal buffer overflow
EndOfStream
End of stream reached
Trait Implementations§
Source§impl Clone for CodecError
impl Clone for CodecError
Source§fn clone(&self) -> CodecError
fn clone(&self) -> CodecError
Returns a duplicate of the value. Read more
1.0.0§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for CodecError
impl Debug for CodecError
Source§impl Display for CodecError
impl Display for CodecError
Source§impl PartialEq for CodecError
impl PartialEq for CodecError
impl Copy for CodecError
impl Eq for CodecError
impl StructuralPartialEq for CodecError
Auto Trait Implementations§
impl Freeze for CodecError
impl RefUnwindSafe for CodecError
impl Send for CodecError
impl Sync for CodecError
impl Unpin for CodecError
impl UnwindSafe for CodecError
Blanket Implementations§
§impl<T> Any for Twhere
T: 'static + ?Sized,
impl<T> Any for Twhere
T: 'static + ?Sized,
§impl<T> Borrow<T> for Twhere
T: ?Sized,
impl<T> Borrow<T> for Twhere
T: ?Sized,
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)