#[repr(C)]pub enum CaptureErrorCode {
PermissionDenied = 0,
DeviceUnavailable = 1,
DeviceLost = 2,
Unsupported = 3,
Internal = 4,
}Expand description
Why a capture stream failed (StreamState::Error).
Variants§
PermissionDenied = 0
The user denied (or hasn’t granted) camera permission.
No camera matched the requested CameraFacing.
DeviceLost = 2
The device disappeared mid-capture (unplugged / claimed).
Unsupported = 3
The requested format / resolution isn’t supported.
Internal = 4
A platform error not covered above.
Trait Implementations§
Source§impl Clone for CaptureErrorCode
impl Clone for CaptureErrorCode
Source§fn clone(&self) -> CaptureErrorCode
fn clone(&self) -> CaptureErrorCode
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 CaptureErrorCode
impl Debug for CaptureErrorCode
Source§impl Hash for CaptureErrorCode
impl Hash for CaptureErrorCode
Source§impl Ord for CaptureErrorCode
impl Ord for CaptureErrorCode
Source§fn cmp(&self, other: &CaptureErrorCode) -> Ordering
fn cmp(&self, other: &CaptureErrorCode) -> Ordering
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for CaptureErrorCode
impl PartialEq for CaptureErrorCode
Source§fn eq(&self, other: &CaptureErrorCode) -> bool
fn eq(&self, other: &CaptureErrorCode) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl PartialOrd for CaptureErrorCode
impl PartialOrd for CaptureErrorCode
impl Copy for CaptureErrorCode
impl Eq for CaptureErrorCode
impl StructuralPartialEq for CaptureErrorCode
Auto Trait Implementations§
impl Freeze for CaptureErrorCode
impl RefUnwindSafe for CaptureErrorCode
impl Send for CaptureErrorCode
impl Sync for CaptureErrorCode
impl Unpin for CaptureErrorCode
impl UnsafeUnpin for CaptureErrorCode
impl UnwindSafe for CaptureErrorCode
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