pub enum SupportedStreamConfigsError {
DeviceNotAvailable,
InvalidArgument,
BackendSpecific {
err: BackendSpecificError,
},
}
Expand description
Error that can happen when enumerating the list of supported formats.
Variants§
DeviceNotAvailable
The device no longer exists. This can happen if the device is disconnected while the program is running.
InvalidArgument
We called something the C-Layer did not understand
BackendSpecific
Fields
See the BackendSpecificError
docs for more information about this error variant.
Trait Implementations§
source§impl Debug for SupportedStreamConfigsError
impl Debug for SupportedStreamConfigsError
source§impl Error for SupportedStreamConfigsError
impl Error for SupportedStreamConfigsError
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 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 SupportedStreamConfigsError
impl Send for SupportedStreamConfigsError
impl Sync for SupportedStreamConfigsError
impl Unpin for SupportedStreamConfigsError
impl UnwindSafe for SupportedStreamConfigsError
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