pub enum AudioError {
GuessChannelMaskFailed(u16),
ChannelNotMatchMask,
ChannekMaskNotMatch(String),
Unparseable(String),
InvalidData(String),
NoSuchData(String),
Unimplemented(String),
InvalidArguments(String),
WrongExtensionData(String),
}
Expand description
The error info for processing an audio file
Variants§
GuessChannelMaskFailed(u16)
ChannelNotMatchMask
ChannekMaskNotMatch(String)
Unparseable(String)
InvalidData(String)
NoSuchData(String)
Unimplemented(String)
InvalidArguments(String)
WrongExtensionData(String)
Trait Implementations§
Source§impl Clone for AudioError
impl Clone for AudioError
Source§fn clone(&self) -> AudioError
fn clone(&self) -> AudioError
Returns a copy 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 AudioError
impl Debug for AudioError
Source§impl Display for AudioError
impl Display for AudioError
Source§impl Error for AudioError
impl Error for AudioError
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<AudioError> for AudioReadError
impl From<AudioError> for AudioReadError
Source§fn from(err: AudioError) -> Self
fn from(err: AudioError) -> Self
Converts to this type from the input type.
Source§impl From<AudioError> for AudioWriteError
impl From<AudioError> for AudioWriteError
Source§fn from(err: AudioError) -> Self
fn from(err: AudioError) -> Self
Converts to this type from the input type.
Source§impl From<DownmixerError> for AudioError
impl From<DownmixerError> for AudioError
Source§fn from(err: DownmixerError) -> AudioError
fn from(err: DownmixerError) -> AudioError
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for AudioError
impl RefUnwindSafe for AudioError
impl Send for AudioError
impl Sync for AudioError
impl Unpin for AudioError
impl UnwindSafe for AudioError
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