pub enum Error {
NoDefaultOutputDevice,
DefaultStreamConfigError(DefaultStreamConfigError),
BuildStreamError(BuildStreamError),
PlayStreamError(PlayStreamError),
}Available on crate feature
cpal only.Expand description
Errors that can occur when using the cpal backend.
Variants§
NoDefaultOutputDevice
A default audio output device could not be determined.
DefaultStreamConfigError(DefaultStreamConfigError)
An error occurred when getting the default output configuration.
BuildStreamError(BuildStreamError)
An error occurred when building the audio stream.
PlayStreamError(PlayStreamError)
An error occurred when starting the audio stream.
Trait Implementations§
Source§impl Error for Error
impl Error for Error
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<BuildStreamError> for Error
impl From<BuildStreamError> for Error
Source§fn from(v: BuildStreamError) -> Self
fn from(v: BuildStreamError) -> Self
Converts to this type from the input type.
Source§impl From<DefaultStreamConfigError> for Error
impl From<DefaultStreamConfigError> for Error
Source§fn from(v: DefaultStreamConfigError) -> Self
fn from(v: DefaultStreamConfigError) -> Self
Converts to this type from the input type.
Source§impl From<PlayStreamError> for Error
impl From<PlayStreamError> for Error
Source§fn from(v: PlayStreamError) -> Self
fn from(v: PlayStreamError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for Error
impl RefUnwindSafe for Error
impl Send for Error
impl Sync for Error
impl Unpin for Error
impl UnsafeUnpin for Error
impl UnwindSafe for Error
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