Enum cpal::DefaultStreamConfigError
source · pub enum DefaultStreamConfigError {
DeviceNotAvailable,
StreamTypeNotSupported,
BackendSpecific {
err: BackendSpecificError,
},
}
Expand description
May occur when attempting to request the default input or output stream format from a Device
.
Variants§
DeviceNotAvailable
The device no longer exists. This can happen if the device is disconnected while the program is running.
StreamTypeNotSupported
Returned if e.g. the default input format was requested on an output-only audio device.
BackendSpecific
See the BackendSpecificError
docs for more information about this error variant.
Fields
Trait Implementations§
source§impl Debug for DefaultStreamConfigError
impl Debug for DefaultStreamConfigError
source§impl Display for DefaultStreamConfigError
impl Display for DefaultStreamConfigError
source§impl Error for DefaultStreamConfigError
impl Error for DefaultStreamConfigError
1.30.0 · 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<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.
Auto Trait Implementations§
impl Freeze for DefaultStreamConfigError
impl RefUnwindSafe for DefaultStreamConfigError
impl Send for DefaultStreamConfigError
impl Sync for DefaultStreamConfigError
impl Unpin for DefaultStreamConfigError
impl UnwindSafe for DefaultStreamConfigError
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