pub struct StartScreencastParams {
pub format: Option<StartScreencastFormat>,
pub quality: Option<i64>,
pub max_width: Option<i64>,
pub max_height: Option<i64>,
pub every_nth_frame: Option<i64>,
pub max_frames_in_flight: Option<i64>,
pub send_last_frame: Option<bool>,
}Expand description
Starts sending each frame using the screencastFrame event.
Experimental: may change without notice.
Parameters of Page.startScreencast.
Fields§
§format: Option<StartScreencastFormat>Image compression format.
quality: Option<i64>Compression quality from range [0..100].
max_width: Option<i64>Maximum screenshot width.
max_height: Option<i64>Maximum screenshot height.
every_nth_frame: Option<i64>Send every n-th frame. Must be a positive integer.
max_frames_in_flight: Option<i64>Maximum number of frames sent until screencastFrameAck is required. Defaults to 3. Must be a positive integer.
send_last_frame: Option<bool>By default, after screencastFrameAck arrives, the next produced frame is sent. Passing this flag enables storing the last produced frame in memory, which is immediately sent upon screencastFrameAck. This way, overall performance is traded for a better latency.
Trait Implementations§
Source§impl Clone for StartScreencastParams
impl Clone for StartScreencastParams
Source§impl Command for StartScreencastParams
impl Command for StartScreencastParams
Source§impl Debug for StartScreencastParams
impl Debug for StartScreencastParams
Source§impl Default for StartScreencastParams
impl Default for StartScreencastParams
Source§impl<'de> Deserialize<'de> for StartScreencastParams
impl<'de> Deserialize<'de> for StartScreencastParams
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 StartScreencastParams
impl PartialEq for StartScreencastParams
Source§impl Serialize for StartScreencastParams
impl Serialize for StartScreencastParams
impl StructuralPartialEq for StartScreencastParams
Auto Trait Implementations§
impl Forget for StartScreencastParams
impl Freeze for StartScreencastParams
impl RefUnwindSafe for StartScreencastParams
impl Send for StartScreencastParams
impl Sync for StartScreencastParams
impl Unpin for StartScreencastParams
impl UnsafeUnpin 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