pub struct Screenshot {
pub data: Vec<u8>,
pub width: u32,
pub height: u32,
pub display_index: usize,
pub metadata: CaptureMetadata,
}Expand description
Screenshot result with metadata
Fields§
§data: Vec<u8>Encoded WebP data
width: u32Image width
height: u32Image height
display_index: usizeDisplay index this was captured from
metadata: CaptureMetadataCapture metadata
Implementations§
Trait Implementations§
Source§impl Clone for Screenshot
impl Clone for Screenshot
Source§fn clone(&self) -> Screenshot
fn clone(&self) -> Screenshot
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 moreAuto Trait Implementations§
impl Freeze for Screenshot
impl RefUnwindSafe for Screenshot
impl Send for Screenshot
impl Sync for Screenshot
impl Unpin for Screenshot
impl UnwindSafe for Screenshot
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