pub enum AudioError {
IOError(Error),
StreamError(StreamError),
DecoderError(DecoderError),
PlayError(PlayError),
SeekError(SeekError),
}Expand description
An error that can occur when using AudioPlayer or AudioSink
Variants§
IOError(Error)
I/O Error.
StreamError(StreamError)
Error that occurs when opening a stream.
DecoderError(DecoderError)
Error that occurs when decoding a sound buffer.
PlayError(PlayError)
Error that occurs when playing a sound.
SeekError(SeekError)
Error that occurs when setting the position of the sink.
Trait Implementations§
Source§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
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<DecoderError> for AudioError
impl From<DecoderError> for AudioError
Source§fn from(source: DecoderError) -> Self
fn from(source: DecoderError) -> Self
Converts to this type from the input type.
Source§impl From<Error> for AudioError
impl From<Error> for AudioError
Source§impl From<PlayError> for AudioError
impl From<PlayError> for AudioError
Source§impl From<SeekError> for AudioError
impl From<SeekError> for AudioError
Source§impl From<StreamError> for AudioError
impl From<StreamError> for AudioError
Source§fn from(source: StreamError) -> Self
fn from(source: StreamError) -> Self
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