pub enum StreamError {
PlayStreamError(PlayStreamError),
DefaultStreamConfigError(DefaultStreamConfigError),
BuildStreamError(BuildStreamError),
SupportedStreamConfigsError(SupportedStreamConfigsError),
NoDevice,
UnsupportedSampleFormat,
}
Expand description
Errors that might occur when interfacing with audio output.
Variants§
PlayStreamError(PlayStreamError)
Could not start playing the stream, see cpal::PlayStreamError for details.
DefaultStreamConfigError(DefaultStreamConfigError)
Failed to get the stream config for the given device. See cpal::DefaultStreamConfigError for details.
BuildStreamError(BuildStreamError)
Error opening stream with OS. See cpal::BuildStreamError for details.
SupportedStreamConfigsError(SupportedStreamConfigsError)
Could not list supported stream 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 StreamError
impl Debug for StreamError
Source§impl Display for StreamError
impl Display for StreamError
Source§impl Error for StreamError
impl Error for StreamError
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 StreamError
impl RefUnwindSafe for StreamError
impl Send for StreamError
impl Sync for StreamError
impl Unpin for StreamError
impl UnwindSafe for StreamError
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