Struct chrome_remote_interface_model::headless_experimental::BeginFrameCommand [−][src]
experimental
and HeadlessExperimental
and Page
and Runtime
only.Sends a BeginFrame to the target and returns when the frame was completed. Optionally captures a screenshot from the resulting frame. Requires that the target was created with enabled BeginFrameControl. Designed for use with --run-all-compositor-stages-before-draw, see also https://goo.gl/3zHXhB for more background.
Implementations
impl BeginFrameCommand
[src]
pub fn builder() -> BeginFrameCommandBuilder
[src]
pub fn frame_time_ticks(&self) -> Option<&f64>
[src]
Timestamp of this BeginFrame in Renderer TimeTicks (milliseconds of uptime). If not set, the current time will be used.
pub fn interval(&self) -> Option<&f64>
[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(&self) -> Option<&bool>
[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(&self) -> Option<&ScreenshotParams>
[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.
Trait Implementations
impl Clone for BeginFrameCommand
[src]
fn clone(&self) -> BeginFrameCommand
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Command for BeginFrameCommand
[src]
type Return = BeginFrameReturn
Return type.
const METHOD: &'static str
[src]
fn into_request(self, session_id: Option<SessionId>, id: u32) -> Request<Self> where
Self: Sized,
[src]
Self: Sized,
impl Debug for BeginFrameCommand
[src]
impl<'de> Deserialize<'de> for BeginFrameCommand
[src]
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
__D: Deserializer<'de>,
impl Serialize for BeginFrameCommand
[src]
Auto Trait Implementations
impl RefUnwindSafe for BeginFrameCommand
[src]
impl Send for BeginFrameCommand
[src]
impl Sync for BeginFrameCommand
[src]
impl Unpin for BeginFrameCommand
[src]
impl UnwindSafe for BeginFrameCommand
[src]
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>,
[src]
T: for<'de> Deserialize<'de>,
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,