Enum awedio::backends::CpalBackendError
source · pub enum CpalBackendError {
NoDevice,
BuildStream(BuildStreamError),
PlayStream(PlayStreamError),
}
Expand description
An error from the CpalBackend
Variants§
NoDevice
No output device or configuration found.
BuildStream(BuildStreamError)
An error while building the output stream
PlayStream(PlayStreamError)
An error while starting to play the stream.
Trait Implementations§
source§impl Debug for CpalBackendError
impl Debug for CpalBackendError
source§impl Display for CpalBackendError
impl Display for CpalBackendError
source§impl Error for CpalBackendError
impl Error for CpalBackendError
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 CpalBackendError
impl From<BuildStreamError> for CpalBackendError
source§fn from(inner: BuildStreamError) -> Self
fn from(inner: BuildStreamError) -> Self
Converts to this type from the input type.
source§impl From<DefaultStreamConfigError> for CpalBackendError
impl From<DefaultStreamConfigError> for CpalBackendError
source§fn from(inner: DefaultStreamConfigError) -> Self
fn from(inner: DefaultStreamConfigError) -> Self
Converts to this type from the input type.
source§impl From<PlayStreamError> for CpalBackendError
impl From<PlayStreamError> for CpalBackendError
source§fn from(inner: PlayStreamError) -> Self
fn from(inner: PlayStreamError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for CpalBackendError
impl RefUnwindSafe for CpalBackendError
impl Send for CpalBackendError
impl Sync for CpalBackendError
impl Unpin for CpalBackendError
impl UnwindSafe for CpalBackendError
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