pub enum AudioPlayError {
RecoveryFailed,
StartFailed,
UnsupportedFormat,
}Expand description
An error that prevents audio playback.
Variants§
RecoveryFailed
The backend could not recover the hardware stream after an audio device error.
StartFailed
The backend could not start the hardware stream after audio data was queued.
UnsupportedFormat
The requested audio format is not supported by the active backend.
Trait Implementations§
Source§impl Clone for AudioPlayError
impl Clone for AudioPlayError
impl Copy for AudioPlayError
Source§impl Debug for AudioPlayError
impl Debug for AudioPlayError
Source§impl Display for AudioPlayError
impl Display for AudioPlayError
impl Eq for AudioPlayError
Source§impl Error for AudioPlayError
impl Error for AudioPlayError
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 PartialEq for AudioPlayError
impl PartialEq for AudioPlayError
impl StructuralPartialEq for AudioPlayError
Auto Trait Implementations§
impl Freeze for AudioPlayError
impl RefUnwindSafe for AudioPlayError
impl Send for AudioPlayError
impl Sync for AudioPlayError
impl Unpin for AudioPlayError
impl UnsafeUnpin for AudioPlayError
impl UnwindSafe for AudioPlayError
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