#[non_exhaustive]pub struct VideoStartOptions {
pub format: Option<String>,
pub quality: Option<i64>,
pub every_nth_frame: Option<i64>,
pub max_width: Option<i64>,
pub max_height: Option<i64>,
}Expand description
Options for Video::start.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.format: Option<String>Image format of each screencast frame. CDP supports "jpeg" and
"png"; defaults to "jpeg" (smaller on the wire — better for capture
throughput at the cost of lossy frames).
quality: Option<i64>Image compression quality (0–100). Only meaningful for "jpeg".
every_nth_frame: Option<i64>Capture every Nth frame. 1 = every frame. Defaults to 1.
max_width: Option<i64>Maximum frame width. None lets CDP choose.
max_height: Option<i64>Maximum frame height. None lets CDP choose.
Implementations§
Trait Implementations§
Source§impl Clone for VideoStartOptions
impl Clone for VideoStartOptions
Source§fn clone(&self) -> VideoStartOptions
fn clone(&self) -> VideoStartOptions
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 VideoStartOptions
impl Debug for VideoStartOptions
Source§impl Default for VideoStartOptions
impl Default for VideoStartOptions
Source§fn default() -> VideoStartOptions
fn default() -> VideoStartOptions
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for VideoStartOptions
impl RefUnwindSafe for VideoStartOptions
impl Send for VideoStartOptions
impl Sync for VideoStartOptions
impl Unpin for VideoStartOptions
impl UnsafeUnpin for VideoStartOptions
impl UnwindSafe for VideoStartOptions
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