#[repr(transparent)]pub struct AVCaptureOutputDataDroppedReason(pub NSInteger);Available on crate feature
AVCaptureOutputBase only.Expand description
Constants indicating the reason a capture data output dropped data.
No data was dropped.
Data was dropped because alwaysDiscardsLate{VideoFrames | DepthData} is YES and the client was still processing previous data when the current data needed to be delivered.
Data was dropped because its pool of buffers ran dry. This is usually indicative that the client is holding onto data objects too long.
Data was dropped because the device providing the data experienced a discontinuity, and an unknown number of data objects have been lost. This condition is typically caused by the system being too busy.
See also Apple’s documentation
Tuple Fields§
§0: NSIntegerImplementations§
Source§impl AVCaptureOutputDataDroppedReason
impl AVCaptureOutputDataDroppedReason
pub const None: Self
pub const LateData: Self
pub const OutOfBuffers: Self
pub const Discontinuity: Self
Trait Implementations§
Source§impl Clone for AVCaptureOutputDataDroppedReason
impl Clone for AVCaptureOutputDataDroppedReason
Source§fn clone(&self) -> AVCaptureOutputDataDroppedReason
fn clone(&self) -> AVCaptureOutputDataDroppedReason
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Ord for AVCaptureOutputDataDroppedReason
impl Ord for AVCaptureOutputDataDroppedReason
Source§fn cmp(&self, other: &AVCaptureOutputDataDroppedReason) -> Ordering
fn cmp(&self, other: &AVCaptureOutputDataDroppedReason) -> Ordering
1.21.0 · 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 AVCaptureOutputDataDroppedReason
impl PartialEq for AVCaptureOutputDataDroppedReason
Source§fn eq(&self, other: &AVCaptureOutputDataDroppedReason) -> bool
fn eq(&self, other: &AVCaptureOutputDataDroppedReason) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl PartialOrd for AVCaptureOutputDataDroppedReason
impl PartialOrd for AVCaptureOutputDataDroppedReason
Source§impl RefEncode for AVCaptureOutputDataDroppedReason
impl RefEncode for AVCaptureOutputDataDroppedReason
Source§const ENCODING_REF: Encoding
const ENCODING_REF: Encoding
The Objective-C type-encoding for a reference of this type. Read more
impl Copy for AVCaptureOutputDataDroppedReason
impl Eq for AVCaptureOutputDataDroppedReason
impl StructuralPartialEq for AVCaptureOutputDataDroppedReason
Auto Trait Implementations§
impl Freeze for AVCaptureOutputDataDroppedReason
impl RefUnwindSafe for AVCaptureOutputDataDroppedReason
impl Send for AVCaptureOutputDataDroppedReason
impl Sync for AVCaptureOutputDataDroppedReason
impl Unpin for AVCaptureOutputDataDroppedReason
impl UnwindSafe for AVCaptureOutputDataDroppedReason
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> EncodeArgument for Twhere
T: Encode,
impl<T> EncodeArgument for Twhere
T: Encode,
Source§const ENCODING_ARGUMENT: Encoding = T::ENCODING
const ENCODING_ARGUMENT: Encoding = T::ENCODING
The Objective-C type-encoding for this type.
Source§impl<T> EncodeReturn for Twhere
T: Encode,
impl<T> EncodeReturn for Twhere
T: Encode,
Source§const ENCODING_RETURN: Encoding = T::ENCODING
const ENCODING_RETURN: Encoding = T::ENCODING
The Objective-C type-encoding for this type.