Struct cpal::BackendSpecificError
source · pub struct BackendSpecificError {
pub description: String,
}
Expand description
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 unforeseen 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§
source§impl Clone for BackendSpecificError
impl Clone for BackendSpecificError
source§fn clone(&self) -> BackendSpecificError
fn clone(&self) -> BackendSpecificError
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for BackendSpecificError
impl Debug for BackendSpecificError
source§impl Display for BackendSpecificError
impl Display for BackendSpecificError
source§impl Error for BackendSpecificError
impl Error for BackendSpecificError
1.30.0 · source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
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<BackendSpecificError> for BuildStreamError
impl From<BackendSpecificError> for BuildStreamError
source§fn from(err: BackendSpecificError) -> Self
fn from(err: BackendSpecificError) -> Self
Converts to this type from the input type.
source§impl From<BackendSpecificError> for DefaultStreamConfigError
impl From<BackendSpecificError> for DefaultStreamConfigError
source§fn from(err: BackendSpecificError) -> Self
fn from(err: BackendSpecificError) -> Self
Converts to this type from the input type.
source§impl From<BackendSpecificError> for DeviceNameError
impl From<BackendSpecificError> for DeviceNameError
source§fn from(err: BackendSpecificError) -> Self
fn from(err: BackendSpecificError) -> Self
Converts to this type from the input type.
source§impl From<BackendSpecificError> for DevicesError
impl From<BackendSpecificError> for DevicesError
source§fn from(err: BackendSpecificError) -> Self
fn from(err: BackendSpecificError) -> Self
Converts to this type from the input type.
source§impl From<BackendSpecificError> for PauseStreamError
impl From<BackendSpecificError> for PauseStreamError
source§fn from(err: BackendSpecificError) -> Self
fn from(err: BackendSpecificError) -> Self
Converts to this type from the input type.
source§impl From<BackendSpecificError> for PlayStreamError
impl From<BackendSpecificError> for PlayStreamError
source§fn from(err: BackendSpecificError) -> Self
fn from(err: BackendSpecificError) -> Self
Converts to this type from the input type.
source§impl From<BackendSpecificError> for StreamError
impl From<BackendSpecificError> for StreamError
source§fn from(err: BackendSpecificError) -> Self
fn from(err: BackendSpecificError) -> Self
Converts to this type from the input type.
source§impl From<BackendSpecificError> for SupportedStreamConfigsError
impl From<BackendSpecificError> for SupportedStreamConfigsError
source§fn from(err: BackendSpecificError) -> Self
fn from(err: BackendSpecificError) -> Self
Converts to this type from the input type.
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§
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