pub enum CaptureFailure {
PermissionDenied,
NotFound,
InUse,
Disconnected,
Other,
}Expand description
Why a capture device could not be used: the getUserMedia failure taxonomy, which every
platform maps onto (authorization status, onCameraDisconnected, NotReadableError, …).
Variants§
PermissionDenied
The user (or MDM) said no: the most common pre-connect failure on mobile.
NotFound
No such device exists (NotFoundError); sent as not_found.
InUse
Another app holds the device (NotReadableError, TrackStartError).
Disconnected
The device went away mid-capture (unplugged, onCameraDisconnected).
Other
Any other failure; sent as other.
Trait Implementations§
Source§impl Clone for CaptureFailure
impl Clone for CaptureFailure
impl Copy for CaptureFailure
Source§impl Debug for CaptureFailure
impl Debug for CaptureFailure
impl Eq for CaptureFailure
Source§impl PartialEq for CaptureFailure
impl PartialEq for CaptureFailure
impl StructuralPartialEq for CaptureFailure
Auto Trait Implementations§
impl Forget for CaptureFailure
impl Freeze for CaptureFailure
impl Move for CaptureFailure
impl RefUnwindSafe for CaptureFailure
impl Send for CaptureFailure
impl Sync for CaptureFailure
impl Unpin for CaptureFailure
impl UnsafeUnpin for CaptureFailure
impl UnwindSafe for CaptureFailure
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