#[non_exhaustive]pub enum FindDevicesError {
}Expand description
Errors from enumerating capture devices (cameras, microphones, screens).
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
AVCaptureDeviceNotFound
Returned on macOS when the AVCaptureDevice class is not available.
MediaTypeSupported(i32)
Returned when device enumeration for the requested media type is not
supported; the payload is the raw AVMediaType value.
OsNotSupported
Returned when device enumeration is not supported on the current operating system.
UTF8Error
Returned when a device description could not be converted to a UTF-8 string.
OutOfMemory
Memory allocation failed (AVERROR(ENOMEM)).
InvalidArgument
FFmpeg rejected an argument as invalid (AVERROR(EINVAL)).
NotFound
The device or stream does not exist (AVERROR(ENOENT)).
IOError
A low-level I/O error occurred (AVERROR(EIO)).
OperationNotPermitted
The operation was not permitted (AVERROR(EPERM)).
PermissionDenied
Permission was denied (AVERROR(EACCES)).
NotImplemented
The functionality is not supported by the linked FFmpeg build
(AVERROR(ENOSYS)).
BadFileDescriptor
An invalid file descriptor was used (AVERROR(EBADF)).
UnknownError(i32)
Any other failure; the payload is the raw FFmpeg error code
(rendered with av_err2str in the message).
Trait Implementations§
Source§impl Debug for FindDevicesError
impl Debug for FindDevicesError
Source§impl Display for FindDevicesError
impl Display for FindDevicesError
Source§impl Error for FindDevicesError
impl Error for FindDevicesError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
use the Display impl or to_string()