pub enum CodecCacheError {
Create(AudioStreamError),
Parse(Error),
Opus(Error),
MetadataEncoding(JsonError),
MetadataTooLarge,
CreatePanicked,
UnknownChannelCount,
Streamcatcher(CatcherError),
StreamNotAtStart,
}Available on crate feature
driver only.Expand description
Errors encountered using a Compressed or Decompressed cached source.
Variants§
Create(AudioStreamError)
The audio stream could not be created.
Parse(Error)
Symphonia failed to parse the container or decode the default stream.
Opus(Error)
The Opus encoder could not be created.
MetadataEncoding(JsonError)
The file’s metadata could not be converted to JSON.
MetadataTooLarge
The input’s metadata was too large after conversion to JSON to fit in a DCA file.
CreatePanicked
The audio stream failed to be created due to a panic in spawn_blocking.
UnknownChannelCount
The audio stream’s channel count could not be determined.
Streamcatcher(CatcherError)
Streamcatcher’s configuration was illegal, and the cache could not be created.
StreamNotAtStart
The input stream had already been read (i.e., Parsed) and so the whole stream
could not be used.
Trait Implementations§
Source§impl Debug for CodecCacheError
impl Debug for CodecCacheError
Source§impl Display for CodecCacheError
impl Display for CodecCacheError
Source§impl Error for CodecCacheError
impl Error for CodecCacheError
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<AudioStreamError> for CodecCacheError
impl From<AudioStreamError> for CodecCacheError
Source§fn from(val: AudioStreamError) -> Self
fn from(val: AudioStreamError) -> Self
Converts to this type from the input type.
Source§impl From<CatcherError> for CodecCacheError
impl From<CatcherError> for CodecCacheError
Source§fn from(val: CatcherError) -> Self
fn from(val: CatcherError) -> Self
Converts to this type from the input type.
Source§impl From<Error> for CodecCacheError
impl From<Error> for CodecCacheError
Source§impl From<Error> for CodecCacheError
impl From<Error> for CodecCacheError
Source§impl From<Error> for CodecCacheError
impl From<Error> for CodecCacheError
Source§fn from(val: SymphError) -> Self
fn from(val: SymphError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for CodecCacheError
impl !RefUnwindSafe for CodecCacheError
impl Send for CodecCacheError
impl Sync for CodecCacheError
impl Unpin for CodecCacheError
impl !UnwindSafe for CodecCacheError
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