pub enum DeviceSinkError {
PlayError(PlayStreamError),
DefaultSinkConfigError(DefaultStreamConfigError),
BuildError(BuildStreamError),
SupportedConfigsError(SupportedStreamConfigsError),
NoDevice,
UnsupportedSampleFormat,
}Expand description
Errors that might occur when interfacing with audio output.
Variants§
PlayError(PlayStreamError)
Could not start playing the sink, see cpal::PlayStreamError for details.
DefaultSinkConfigError(DefaultStreamConfigError)
Failed to get the stream config for the given device. See cpal::DefaultStreamConfigError for details.
BuildError(BuildStreamError)
Error opening sink with OS. See cpal::BuildStreamError for details.
SupportedConfigsError(SupportedStreamConfigsError)
Could not list supported configs for the device. Maybe it disconnected. For details see: cpal::SupportedStreamConfigsError.
NoDevice
Could not find any output device
UnsupportedSampleFormat
New cpal sample format that rodio does not yet support please open an issue if you run into this.
Trait Implementations§
Source§impl Debug for DeviceSinkError
impl Debug for DeviceSinkError
Source§impl Display for DeviceSinkError
impl Display for DeviceSinkError
Source§impl Error for DeviceSinkError
impl Error for DeviceSinkError
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 DeviceSinkError
impl RefUnwindSafe for DeviceSinkError
impl Send for DeviceSinkError
impl Sync for DeviceSinkError
impl Unpin for DeviceSinkError
impl UnsafeUnpin for DeviceSinkError
impl UnwindSafe for DeviceSinkError
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