#[non_exhaustive]pub enum SeekError {
NotSupported {
underlying_source: &'static str,
},
SymphoniaDecoder(SeekError),
HoundDecoder(Error),
Other(Box<dyn Error + Send>),
}
Expand description
Occurs when try_seek fails because the underlying decoder has an error or does not support seeking.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
NotSupported
One of the underlying sources does not support seeking
SymphoniaDecoder(SeekError)
The symphonia decoder ran into an issue
HoundDecoder(Error)
The hound (wav) decoder ran into an issue
Other(Box<dyn Error + Send>)
Any other error probably in a custom Source
Implementations§
Trait Implementations§
source§impl Error for SeekError
impl Error for SeekError
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()
Auto Trait Implementations§
impl Freeze for SeekError
impl !RefUnwindSafe for SeekError
impl Send for SeekError
impl !Sync for SeekError
impl Unpin for SeekError
impl !UnwindSafe for SeekError
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