pub enum PlayerError {
NoOutputDevice,
DeviceInitFailed(String),
PlaybackFailed(String),
BackendError(String),
}Expand description
Errors that can occur during audio playback operations.
Variants§
NoOutputDevice
No audio output device is available on the system.
DeviceInitFailed(String)
Failed to initialize the audio output device.
PlaybackFailed(String)
An error occurred during audio playback.
BackendError(String)
An error from the underlying audio backend (rodio or cpal).
Trait Implementations§
Source§impl Debug for PlayerError
impl Debug for PlayerError
Source§impl Display for PlayerError
impl Display for PlayerError
Source§impl Error for PlayerError
impl Error for PlayerError
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()
Auto Trait Implementations§
impl Freeze for PlayerError
impl RefUnwindSafe for PlayerError
impl Send for PlayerError
impl Sync for PlayerError
impl Unpin for PlayerError
impl UnwindSafe for PlayerError
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