pub enum CaptureState {
Running,
Interrupted(Option<CameraInterruption>),
Ended(CameraError),
}Expand description
What a camera session is doing.
Variants§
Running
Interrupted(Option<CameraInterruption>)
No frames for now, for this reason where the system gives one; it resumes by itself. macOS gives none: Apple marks the interruption’s reason unavailable there.
Ended(CameraError)
For good, for this reason.
Trait Implementations§
Source§impl Clone for CaptureState
impl Clone for CaptureState
Source§impl Debug for CaptureState
impl Debug for CaptureState
impl Eq for CaptureState
Source§impl PartialEq for CaptureState
impl PartialEq for CaptureState
impl StructuralPartialEq for CaptureState
Auto Trait Implementations§
impl Freeze for CaptureState
impl RefUnwindSafe for CaptureState
impl Send for CaptureState
impl Sync for CaptureState
impl Unpin for CaptureState
impl UnsafeUnpin for CaptureState
impl UnwindSafe for CaptureState
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.