#[non_exhaustive]pub enum FrameQuality {
Intact,
Recovering,
}Expand description
Indicates whether a delivered frame is pixel-perfect or potentially corrupted.
Network sources (RTSP) can lose packets and produce frames that reference missing
past data, smearing macroblocks until the next keyframe. USB backends always return
FrameQuality::Intact.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Intact
Pixel data is complete and trustworthy.
Recovering
The decoder recovered from packet loss; pixels may be visibly wrong for a few frames.
Trait Implementations§
Source§impl Clone for FrameQuality
impl Clone for FrameQuality
Source§fn clone(&self) -> FrameQuality
fn clone(&self) -> FrameQuality
Returns a duplicate 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 Debug for FrameQuality
impl Debug for FrameQuality
Source§impl Hash for FrameQuality
impl Hash for FrameQuality
Source§impl PartialEq for FrameQuality
impl PartialEq for FrameQuality
impl Copy for FrameQuality
impl Eq for FrameQuality
impl StructuralPartialEq for FrameQuality
Auto Trait Implementations§
impl Freeze for FrameQuality
impl RefUnwindSafe for FrameQuality
impl Send for FrameQuality
impl Sync for FrameQuality
impl Unpin for FrameQuality
impl UnsafeUnpin for FrameQuality
impl UnwindSafe for FrameQuality
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