pub enum SymphoniaDecoderError {
ResampleError(String),
ResamplerConstructionError(String),
IoError(String),
DecodeError(String),
UnsupportedCodec,
NoSupportedAudioTracks,
NoStreams,
IndeterminantDuration,
}Expand description
Error raised when trying to decode a song with the SymphoniaDecoder.
Variants§
ResampleError(String)
Error raised when trying to resample audio. (from rubato)
ResamplerConstructionError(String)
Error raised when trying to create a resampler. (from rubato)
IoError(String)
General IO error.
DecodeError(String)
Error raised when trying to decode audio. (from symphonia)
UnsupportedCodec
Error raised when trying to decode a file with an unsupported codec.
NoSupportedAudioTracks
Error raised when trying to decode a file with no supported audio tracks.
NoStreams
Error raised when trying to decode a file with no streams.
IndeterminantDuration
Error raised when the audio source’s duration is either unknown or infinite.
Trait Implementations§
Source§impl Clone for SymphoniaDecoderError
impl Clone for SymphoniaDecoderError
Source§fn clone(&self) -> SymphoniaDecoderError
fn clone(&self) -> SymphoniaDecoderError
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 SymphoniaDecoderError
impl Debug for SymphoniaDecoderError
Source§impl Display for SymphoniaDecoderError
impl Display for SymphoniaDecoderError
impl Eq for SymphoniaDecoderError
Source§impl Error for SymphoniaDecoderError
impl Error for SymphoniaDecoderError
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<Error> for SymphoniaDecoderError
impl From<Error> for SymphoniaDecoderError
Source§impl From<Error> for SymphoniaDecoderError
impl From<Error> for SymphoniaDecoderError
Source§impl From<ResampleError> for SymphoniaDecoderError
impl From<ResampleError> for SymphoniaDecoderError
Source§fn from(err: ResampleError) -> Self
fn from(err: ResampleError) -> Self
Converts to this type from the input type.
Source§impl From<ResamplerConstructionError> for SymphoniaDecoderError
impl From<ResamplerConstructionError> for SymphoniaDecoderError
Source§fn from(err: ResamplerConstructionError) -> Self
fn from(err: ResamplerConstructionError) -> Self
Converts to this type from the input type.
Source§impl From<SymphoniaDecoderError> for BlissError
impl From<SymphoniaDecoderError> for BlissError
Source§fn from(err: SymphoniaDecoderError) -> Self
fn from(err: SymphoniaDecoderError) -> Self
Converts to this type from the input type.
Source§impl PartialEq for SymphoniaDecoderError
impl PartialEq for SymphoniaDecoderError
impl StructuralPartialEq for SymphoniaDecoderError
Auto Trait Implementations§
impl Freeze for SymphoniaDecoderError
impl RefUnwindSafe for SymphoniaDecoderError
impl Send for SymphoniaDecoderError
impl Sync for SymphoniaDecoderError
impl Unpin for SymphoniaDecoderError
impl UnsafeUnpin for SymphoniaDecoderError
impl UnwindSafe for SymphoniaDecoderError
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more