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 Clone for DefaultStreamConfigError
impl Clone for DefaultStreamConfigError
Source§fn clone(&self) -> DefaultStreamConfigError
fn clone(&self) -> DefaultStreamConfigError
Returns a duplicate 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 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.
Source§impl Hash for DefaultStreamConfigError
impl Hash for DefaultStreamConfigError
Source§impl PartialEq for DefaultStreamConfigError
impl PartialEq for DefaultStreamConfigError
impl Eq for DefaultStreamConfigError
impl StructuralPartialEq for DefaultStreamConfigError
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