#[non_exhaustive]pub struct Frame {
pub pixels: Vec<u8>,
pub width: u32,
pub height: u32,
pub stride: u32,
pub serial: u64,
}Expand description
A rendered frame: height rows of width pixels, stride bytes apart.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.pixels: Vec<u8>The pixels, row by row.
width: u32Width in pixels.
height: u32Height in pixels.
stride: u32Bytes from one row to the next (at least width * 4).
serial: u64Counts the frames shown: a new value is a new picture.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Forget for Frame
impl Freeze for Frame
impl Move for Frame
impl RefUnwindSafe for Frame
impl Send for Framewhere
RawVecInner: Send,
impl Sync for Framewhere
RawVecInner: Sync,
impl Unpin for Frame
impl UnsafeUnpin for Frame
impl UnwindSafe for Framewhere
RawVecInner: UnwindSafe,
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