Struct chromiumoxide::cdp::browser_protocol::headless_experimental::BeginFrameReturns[][src]

pub struct BeginFrameReturns {
    pub has_damage: bool,
    pub screenshot_data: Option<Binary>,
}

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. beginFrame

Fields

has_damage: bool

Whether the BeginFrame resulted in damage and, thus, a new frame was committed to the display. Reported for diagnostic uses, may be removed in the future.

screenshot_data: Option<Binary>

Base64-encoded image data of the screenshot, if one was requested and successfully taken.

Implementations

impl BeginFrameReturns[src]

pub fn new(has_damage: impl Into<bool>) -> BeginFrameReturns[src]

impl BeginFrameReturns[src]

Trait Implementations

impl Clone for BeginFrameReturns[src]

impl Debug for BeginFrameReturns[src]

impl<'de> Deserialize<'de> for BeginFrameReturns[src]

impl PartialEq<BeginFrameReturns> for BeginFrameReturns[src]

impl Serialize for BeginFrameReturns[src]

impl StructuralPartialEq for BeginFrameReturns[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> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

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

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

impl<T> Same<T> for T

type Output = T

Should always be Self

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.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,