pub struct ScreencastFrameMetadata { /* private fields */ }Available on crate features
Page and Debugger and DOM and IO and Network and Runtime and experimental only.Expand description
Screencast frame metadata.
Implementations§
Source§impl ScreencastFrameMetadata
impl ScreencastFrameMetadata
pub fn builder() -> ScreencastFrameMetadataBuilder
Sourcepub fn offset_top(&self) -> f64
pub fn offset_top(&self) -> f64
Top offset in DIP.
Sourcepub fn page_scale_factor(&self) -> f64
pub fn page_scale_factor(&self) -> f64
Page scale factor.
Sourcepub fn device_width(&self) -> f64
pub fn device_width(&self) -> f64
Device screen width in DIP.
Sourcepub fn device_height(&self) -> f64
pub fn device_height(&self) -> f64
Device screen height in DIP.
Sourcepub fn scroll_offset_x(&self) -> f64
pub fn scroll_offset_x(&self) -> f64
Position of horizontal scroll in CSS pixels.
Sourcepub fn scroll_offset_y(&self) -> f64
pub fn scroll_offset_y(&self) -> f64
Position of vertical scroll in CSS pixels.
Sourcepub fn timestamp(&self) -> Option<&TimeSinceEpoch>
pub fn timestamp(&self) -> Option<&TimeSinceEpoch>
Frame swap timestamp.
Trait Implementations§
Source§impl Clone for ScreencastFrameMetadata
impl Clone for ScreencastFrameMetadata
Source§fn clone(&self) -> ScreencastFrameMetadata
fn clone(&self) -> ScreencastFrameMetadata
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 ScreencastFrameMetadata
impl Debug for ScreencastFrameMetadata
Source§impl<'de> Deserialize<'de> for ScreencastFrameMetadata
impl<'de> Deserialize<'de> for ScreencastFrameMetadata
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 ScreencastFrameMetadata
impl RefUnwindSafe for ScreencastFrameMetadata
impl Send for ScreencastFrameMetadata
impl Sync for ScreencastFrameMetadata
impl Unpin for ScreencastFrameMetadata
impl UnwindSafe for ScreencastFrameMetadata
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