pub struct ShmFrameSlot {
pub sequence: u64,
pub timestamp: Instant,
pub width: u32,
pub height: u32,
pub stride: u32,
pub damage_rects: Vec<Rect>,
pub display_list: DisplayList,
pub pixel_buffer: Vec<u8>,
}Expand description
An individual frame slot inside the shared memory ring buffer.
Fields§
§sequence: u64Monotonically increasing frame sequence identifier.
timestamp: InstantMonotonic creation timestamp.
width: u32Viewport width in device pixels.
height: u32Viewport height in device pixels.
stride: u32Horizontal scanline stride in bytes (e.g. width * 4).
damage_rects: Vec<Rect>Dirty damage rectangles updated in this frame.
display_list: DisplayListVector display list commands for compositor ingestion.
pixel_buffer: Vec<u8>Optional rasterized pixel backing buffer (RGBA8/BGRA8).
Trait Implementations§
Source§impl Clone for ShmFrameSlot
impl Clone for ShmFrameSlot
Source§impl Debug for ShmFrameSlot
impl Debug for ShmFrameSlot
Auto Trait Implementations§
impl Forget for ShmFrameSlot
impl Freeze for ShmFrameSlot
impl Move for ShmFrameSlot
impl RefUnwindSafe for ShmFrameSlot
impl Send for ShmFrameSlot
impl Sync for ShmFrameSlot
impl Unpin for ShmFrameSlot
impl UnsafeUnpin for ShmFrameSlot
impl UnwindSafe for ShmFrameSlot
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