pub struct ScreenshotOptions {
pub display_id: u32,
pub region: Option<CaptureRegion>,
pub output_format: OutputFormat,
}Expand description
Screenshot options
Fields§
§display_id: u32Display ID for which to take screenshot.
Use get_focused_display_info to get ID of focussed display`)
region: Option<CaptureRegion>Region for which to take screenshot. Leave empty for entire screen.
output_format: OutputFormatThe output format for the screenshot.
Auto Trait Implementations§
impl Freeze for ScreenshotOptions
impl RefUnwindSafe for ScreenshotOptions
impl Send for ScreenshotOptions
impl Sync for ScreenshotOptions
impl Unpin for ScreenshotOptions
impl UnwindSafe for ScreenshotOptions
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