pub struct StartScreencastParams {
pub format: Option<ScreencastFormat>,
pub quality: Option<i32>,
pub max_width: Option<i32>,
pub max_height: Option<i32>,
pub every_nth_frame: Option<i32>,
}Expand description
Parameters for Page.startScreencast.
Fields§
§format: Option<ScreencastFormat>Image compression format.
quality: Option<i32>Compression quality from range [0..100].
max_width: Option<i32>Maximum screenshot width.
max_height: Option<i32>Maximum screenshot height.
every_nth_frame: Option<i32>Send every n-th frame.
Implementations§
Source§impl StartScreencastParams
impl StartScreencastParams
Sourcepub fn format(self, format: ScreencastFormat) -> Self
pub fn format(self, format: ScreencastFormat) -> Self
Set the image format.
Sourcepub fn max_height(self, height: i32) -> Self
pub fn max_height(self, height: i32) -> Self
Set the maximum height.
Sourcepub fn every_nth_frame(self, n: i32) -> Self
pub fn every_nth_frame(self, n: i32) -> Self
Set which frames to capture (every nth frame).
Trait Implementations§
Source§impl Clone for StartScreencastParams
impl Clone for StartScreencastParams
Source§fn clone(&self) -> StartScreencastParams
fn clone(&self) -> StartScreencastParams
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 StartScreencastParams
impl Debug for StartScreencastParams
Source§impl Default for StartScreencastParams
impl Default for StartScreencastParams
Source§fn default() -> StartScreencastParams
fn default() -> StartScreencastParams
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for StartScreencastParams
impl RefUnwindSafe for StartScreencastParams
impl Send for StartScreencastParams
impl Sync for StartScreencastParams
impl Unpin for StartScreencastParams
impl UnwindSafe for StartScreencastParams
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