pub struct CaptureScreenshot { /* private fields */ }Expand description
Capture page screenshot.
Implementations§
Source§impl CaptureScreenshot
impl CaptureScreenshot
pub fn new() -> Self
pub fn with_format(self, format: impl Into<String>) -> Self
pub fn with_quality(self, quality: impl Into<i64>) -> Self
pub fn with_clip(self, clip: impl Into<Viewport>) -> Self
pub fn with_from_surface(self, from_surface: impl Into<bool>) -> Self
pub fn with_capture_beyond_viewport( self, capture_beyond_viewport: impl Into<bool>, ) -> Self
pub fn with_optimize_for_speed( self, optimize_for_speed: impl Into<bool>, ) -> Self
Trait Implementations§
Source§impl Clone for CaptureScreenshot
impl Clone for CaptureScreenshot
Source§fn clone(&self) -> CaptureScreenshot
fn clone(&self) -> CaptureScreenshot
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 moreSource§impl Command for CaptureScreenshot
impl Command for CaptureScreenshot
Source§type Response = CaptureScreenshotResult
type Response = CaptureScreenshotResult
Response type for this command
Source§impl Debug for CaptureScreenshot
impl Debug for CaptureScreenshot
Auto Trait Implementations§
impl Freeze for CaptureScreenshot
impl RefUnwindSafe for CaptureScreenshot
impl Send for CaptureScreenshot
impl Sync for CaptureScreenshot
impl Unpin for CaptureScreenshot
impl UnwindSafe for CaptureScreenshot
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