pub struct ScreencastFrameMetadata {
pub offset_top: f64,
pub page_scale_factor: f64,
pub device_width: f64,
pub device_height: f64,
pub scroll_offset_x: f64,
pub scroll_offset_y: f64,
pub timestamp: Option<TimeSinceEpoch>,
}Expand description
Screencast frame metadata. ScreencastFrameMetadata
Fields§
§offset_top: f64Top offset in DIP.
page_scale_factor: f64Page scale factor.
device_width: f64Device screen width in DIP.
device_height: f64Device screen height in DIP.
scroll_offset_x: f64Position of horizontal scroll in CSS pixels.
scroll_offset_y: f64Position of vertical scroll in CSS pixels.
timestamp: Option<TimeSinceEpoch>Frame swap timestamp.
Implementations§
Source§impl ScreencastFrameMetadata
impl ScreencastFrameMetadata
pub const IDENTIFIER: &'static str = "Page.ScreencastFrameMetadata"
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
Source§impl PartialEq for ScreencastFrameMetadata
impl PartialEq for ScreencastFrameMetadata
Source§impl Serialize for ScreencastFrameMetadata
impl Serialize for ScreencastFrameMetadata
impl StructuralPartialEq for ScreencastFrameMetadata
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