pub enum CapturedFrame {
Bgra {
width: u32,
height: u32,
data: Vec<u8>,
},
Png(Vec<u8>),
}Expand description
A captured frame — either raw BGRA pixels (the fast diff-loop path) or a
PNG (the file-save path, or the simctl fallback which is always PNG).
Variants§
Bgra
Raw BGRA8888 pixels, width * height * 4 bytes, row padding stripped.
Fields
Png(Vec<u8>)
PNG-encoded frame.
Trait Implementations§
Source§impl Clone for CapturedFrame
impl Clone for CapturedFrame
Source§fn clone(&self) -> CapturedFrame
fn clone(&self) -> CapturedFrame
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 CapturedFrame
impl Debug for CapturedFrame
impl Eq for CapturedFrame
Source§impl PartialEq for CapturedFrame
impl PartialEq for CapturedFrame
impl StructuralPartialEq for CapturedFrame
Auto Trait Implementations§
impl Freeze for CapturedFrame
impl RefUnwindSafe for CapturedFrame
impl Send for CapturedFrame
impl Sync for CapturedFrame
impl Unpin for CapturedFrame
impl UnsafeUnpin for CapturedFrame
impl UnwindSafe for CapturedFrame
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