pub struct CapturedSurfaceBuffer {
pub width: u32,
pub height: u32,
pub stride: i32,
pub pixels: Vec<u8>,
pub is_cairo_argb32: bool,
}Expand description
Owned surface pixel buffer captured on the UI thread so PNG compression & base64 encoding can execute on a background worker thread without stalling rendering.
Fields§
§width: u32§height: u32§stride: i32§pixels: Vec<u8>§is_cairo_argb32: boolImplementations§
Trait Implementations§
Source§impl Clone for CapturedSurfaceBuffer
impl Clone for CapturedSurfaceBuffer
Auto Trait Implementations§
impl Forget for CapturedSurfaceBuffer
impl Freeze for CapturedSurfaceBuffer
impl Move for CapturedSurfaceBuffer
impl RefUnwindSafe for CapturedSurfaceBuffer
impl Send for CapturedSurfaceBuffer
impl Sync for CapturedSurfaceBuffer
impl Unpin for CapturedSurfaceBuffer
impl UnsafeUnpin for CapturedSurfaceBuffer
impl UnwindSafe for CapturedSurfaceBuffer
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