pub struct ScreencastStartOptions {
pub size: Option<ScreencastSize>,
pub quality: Option<i32>,
pub path: Option<PathBuf>,
}Expand description
Options for Screencast::start.
Fields§
§size: Option<ScreencastSize>Output frame size. When None, Playwright uses the page’s
current viewport size.
quality: Option<i32>JPEG quality, 0..=100. Server default is implementation-defined.
path: Option<PathBuf>When set, the screencast is also recorded to a file at this
path. The file is written on Screencast::stop. The recording
covers only the active start/stop window — for a continuous
“always-on” recording over the whole page session, use
BrowserContextOptions::record_video instead (the Video
class).
Trait Implementations§
Source§impl Clone for ScreencastStartOptions
impl Clone for ScreencastStartOptions
Source§fn clone(&self) -> ScreencastStartOptions
fn clone(&self) -> ScreencastStartOptions
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 ScreencastStartOptions
impl Debug for ScreencastStartOptions
Source§impl Default for ScreencastStartOptions
impl Default for ScreencastStartOptions
Source§fn default() -> ScreencastStartOptions
fn default() -> ScreencastStartOptions
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for ScreencastStartOptions
impl RefUnwindSafe for ScreencastStartOptions
impl Send for ScreencastStartOptions
impl Sync for ScreencastStartOptions
impl Unpin for ScreencastStartOptions
impl UnsafeUnpin for ScreencastStartOptions
impl UnwindSafe for ScreencastStartOptions
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