pub struct ScreenshotRequestedEvent { /* private fields */ }Available on crate features
experimental and Overlay and DOM and Page and Runtime only.Expand description
Fired when user asks to capture screenshot of some area on the page.
Implementations§
Methods from Deref<Target = Viewport>§
Sourcepub fn x(&self) -> f64
Available on crate features Debugger and IO and Network only.
pub fn x(&self) -> f64
Debugger and IO and Network only.X offset in device independent pixels (dip).
Sourcepub fn y(&self) -> f64
Available on crate features Debugger and IO and Network only.
pub fn y(&self) -> f64
Debugger and IO and Network only.Y offset in device independent pixels (dip).
Sourcepub fn width(&self) -> f64
Available on crate features Debugger and IO and Network only.
pub fn width(&self) -> f64
Debugger and IO and Network only.Rectangle width in device independent pixels (dip).
Trait Implementations§
Source§impl Clone for ScreenshotRequestedEvent
impl Clone for ScreenshotRequestedEvent
Source§fn clone(&self) -> ScreenshotRequestedEvent
fn clone(&self) -> ScreenshotRequestedEvent
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 Debug for ScreenshotRequestedEvent
impl Debug for ScreenshotRequestedEvent
Source§impl Deref for ScreenshotRequestedEvent
impl Deref for ScreenshotRequestedEvent
Source§impl<'de> Deserialize<'de> for ScreenshotRequestedEvent
impl<'de> Deserialize<'de> for ScreenshotRequestedEvent
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for ScreenshotRequestedEvent
impl RefUnwindSafe for ScreenshotRequestedEvent
impl Send for ScreenshotRequestedEvent
impl Sync for ScreenshotRequestedEvent
impl Unpin for ScreenshotRequestedEvent
impl UnwindSafe for ScreenshotRequestedEvent
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