pub struct ScreencastFrameMetadataBuilder { /* private fields */ }Expand description
Builder for ScreencastFrameMetadata.
Implementations§
Source§impl ScreencastFrameMetadataBuilder
impl ScreencastFrameMetadataBuilder
Sourcepub fn offset_top<VALUE: Into<JsFloat>>(&mut self, value: VALUE) -> &mut Self
pub fn offset_top<VALUE: Into<JsFloat>>(&mut self, value: VALUE) -> &mut Self
Top offset in DIP.
Sourcepub fn page_scale_factor<VALUE: Into<JsFloat>>(
&mut self,
value: VALUE,
) -> &mut Self
pub fn page_scale_factor<VALUE: Into<JsFloat>>( &mut self, value: VALUE, ) -> &mut Self
Page scale factor.
Sourcepub fn device_width<VALUE: Into<JsFloat>>(&mut self, value: VALUE) -> &mut Self
pub fn device_width<VALUE: Into<JsFloat>>(&mut self, value: VALUE) -> &mut Self
Device screen width in DIP.
Sourcepub fn device_height<VALUE: Into<JsFloat>>(&mut self, value: VALUE) -> &mut Self
pub fn device_height<VALUE: Into<JsFloat>>(&mut self, value: VALUE) -> &mut Self
Device screen height in DIP.
Sourcepub fn scroll_offset_x<VALUE: Into<JsFloat>>(
&mut self,
value: VALUE,
) -> &mut Self
pub fn scroll_offset_x<VALUE: Into<JsFloat>>( &mut self, value: VALUE, ) -> &mut Self
Position of horizontal scroll in CSS pixels.
Sourcepub fn scroll_offset_y<VALUE: Into<JsFloat>>(
&mut self,
value: VALUE,
) -> &mut Self
pub fn scroll_offset_y<VALUE: Into<JsFloat>>( &mut self, value: VALUE, ) -> &mut Self
Position of vertical scroll in CSS pixels.
Sourcepub fn timestamp<VALUE: Into<TimeSinceEpoch>>(
&mut self,
value: VALUE,
) -> &mut Self
pub fn timestamp<VALUE: Into<TimeSinceEpoch>>( &mut self, value: VALUE, ) -> &mut Self
Frame swap timestamp.
Sourcepub fn build(
&self,
) -> Result<ScreencastFrameMetadata, ScreencastFrameMetadataBuilderError>
pub fn build( &self, ) -> Result<ScreencastFrameMetadata, ScreencastFrameMetadataBuilderError>
Trait Implementations§
Source§impl Clone for ScreencastFrameMetadataBuilder
impl Clone for ScreencastFrameMetadataBuilder
Source§fn clone(&self) -> ScreencastFrameMetadataBuilder
fn clone(&self) -> ScreencastFrameMetadataBuilder
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 moreAuto Trait Implementations§
impl Freeze for ScreencastFrameMetadataBuilder
impl RefUnwindSafe for ScreencastFrameMetadataBuilder
impl Send for ScreencastFrameMetadataBuilder
impl Sync for ScreencastFrameMetadataBuilder
impl Unpin for ScreencastFrameMetadataBuilder
impl UnsafeUnpin for ScreencastFrameMetadataBuilder
impl UnwindSafe for ScreencastFrameMetadataBuilder
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