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>,
pub monotonic_timestamp: Option<MonotonicTime>,
}Expand description
Screencast frame metadata.
Experimental: may change without notice.
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.
monotonic_timestamp: Option<MonotonicTime>Frame swap timestamp as monotonic time.
Trait Implementations§
Source§impl Clone for ScreencastFrameMetadata
impl Clone for ScreencastFrameMetadata
Source§impl Debug for ScreencastFrameMetadata
impl Debug for ScreencastFrameMetadata
Source§impl Default for ScreencastFrameMetadata
impl Default 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 Forget for ScreencastFrameMetadata
impl Freeze for ScreencastFrameMetadata
impl RefUnwindSafe for ScreencastFrameMetadata
impl Send for ScreencastFrameMetadata
impl Sync for ScreencastFrameMetadata
impl Unpin for ScreencastFrameMetadata
impl UnsafeUnpin 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