pub enum SoundError {
UnsupportedChannelCount,
UnsupportedFeature,
InvalidFormat,
}Expand description
An error that prevents successful decoding of an audio stream.
Variants§
UnsupportedChannelCount
The channel count is unsupported. Only mono and stero sounds are supported.
UnsupportedFeature
A feature in the audio file isn’t supported by the parser.
InvalidFormat
The audio file not formatted correctly for the encoding.
Trait Implementations§
Source§impl Clone for SoundError
impl Clone for SoundError
Source§fn clone(&self) -> SoundError
fn clone(&self) -> SoundError
Returns a duplicate 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 SoundError
impl Debug for SoundError
impl Copy for SoundError
Auto Trait Implementations§
impl Freeze for SoundError
impl RefUnwindSafe for SoundError
impl Send for SoundError
impl Sync for SoundError
impl Unpin for SoundError
impl UnwindSafe for SoundError
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