[−][src]Struct cpal::BackendSpecificError
Some error has occurred that is specific to the backend from which it was produced.
This error is often used as a catch-all in cases where:
- It is unclear exactly what error might be produced by the backend API.
- It does not make sense to add a variant to the enclosing error type.
- No error was expected to occur at all, but we return an error to avoid the possibility of a
panic!
caused by some unforseen or unknown reason.
Note: If you notice a BackendSpecificError
that you believe could be better handled in a
cross-platform manner, please create an issue or submit a pull request with a patch that adds
the necessary error variant to the appropriate error enum.
Fields
description: String
Trait Implementations
impl Clone for BackendSpecificError
[src]
fn clone(&self) -> BackendSpecificError
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for BackendSpecificError
[src]
impl Display for BackendSpecificError
[src]
impl Error for BackendSpecificError
[src]
fn source(&self) -> Option<&(dyn Error + 'static)>
1.30.0[src]
fn backtrace(&self) -> Option<&Backtrace>
[src]
fn description(&self) -> &str
1.0.0[src]
fn cause(&self) -> Option<&dyn Error>
1.0.0[src]
impl From<BackendSpecificError> for DevicesError
[src]
fn from(source: BackendSpecificError) -> Self
[src]
impl From<BackendSpecificError> for DeviceNameError
[src]
fn from(source: BackendSpecificError) -> Self
[src]
impl From<BackendSpecificError> for SupportedStreamConfigsError
[src]
fn from(source: BackendSpecificError) -> Self
[src]
impl From<BackendSpecificError> for DefaultStreamConfigError
[src]
fn from(source: BackendSpecificError) -> Self
[src]
impl From<BackendSpecificError> for BuildStreamError
[src]
fn from(source: BackendSpecificError) -> Self
[src]
impl From<BackendSpecificError> for PlayStreamError
[src]
fn from(source: BackendSpecificError) -> Self
[src]
impl From<BackendSpecificError> for PauseStreamError
[src]
fn from(source: BackendSpecificError) -> Self
[src]
impl From<BackendSpecificError> for StreamError
[src]
fn from(source: BackendSpecificError) -> Self
[src]
Auto Trait Implementations
impl RefUnwindSafe for BackendSpecificError
impl Send for BackendSpecificError
impl Sync for BackendSpecificError
impl Unpin for BackendSpecificError
impl UnwindSafe for BackendSpecificError
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,