Struct chrome_remote_interface_model::headless_experimental::BeginFrameCommandBuilder[][src]

pub struct BeginFrameCommandBuilder { /* fields omitted */ }

Implementations

impl BeginFrameCommandBuilder[src]

pub fn frame_time_ticks(&mut self, v: f64) -> &mut Self[src]

Timestamp of this BeginFrame in Renderer TimeTicks (milliseconds of uptime). If not set, the current time will be used.

pub fn interval(&mut self, v: f64) -> &mut Self[src]

The interval between BeginFrames that is reported to the compositor, in milliseconds. Defaults to a 60 frames/second interval, i.e. about 16.666 milliseconds.

pub fn no_display_updates(&mut self, v: bool) -> &mut Self[src]

Whether updates should not be committed and drawn onto the display. False by default. If true, only side effects of the BeginFrame will be run, such as layout and animations, but any visual updates may not be visible on the display or in screenshots.

pub fn screenshot(&mut self, v: ScreenshotParams) -> &mut Self[src]

If set, a screenshot of the frame will be captured and returned in the response. Otherwise, no screenshot will be captured. Note that capturing a screenshot can fail, for example, during renderer initialization. In such a case, no screenshot data will be returned.

pub fn build(&mut self) -> Result<BeginFrameCommand, &'static str>[src]

Trait Implementations

impl Clone for BeginFrameCommandBuilder[src]

impl Debug for BeginFrameCommandBuilder[src]

impl Default for BeginFrameCommandBuilder[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.