pub struct BeginFrameReturns {
pub hasDamage: bool,
pub screenshotData: Option<String>,
}Expand description
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.gle/chrome-headless-rendering for more background.
Fields§
§hasDamage: boolWhether 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.
screenshotData: Option<String>Base64-encoded image data of the screenshot, if one was requested and successfully taken. (Encoded as a base64 string when passed over JSON)
Trait Implementations§
Source§impl Clone for BeginFrameReturns
impl Clone for BeginFrameReturns
Source§fn clone(&self) -> BeginFrameReturns
fn clone(&self) -> BeginFrameReturns
Returns a duplicate of the value. Read more
1.0.0 · 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 BeginFrameReturns
impl Debug for BeginFrameReturns
Source§impl Default for BeginFrameReturns
impl Default for BeginFrameReturns
Source§fn default() -> BeginFrameReturns
fn default() -> BeginFrameReturns
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for BeginFrameReturns
impl<'de> Deserialize<'de> for BeginFrameReturns
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
Auto Trait Implementations§
impl Freeze for BeginFrameReturns
impl RefUnwindSafe for BeginFrameReturns
impl Send for BeginFrameReturns
impl Sync for BeginFrameReturns
impl Unpin for BeginFrameReturns
impl UnsafeUnpin for BeginFrameReturns
impl UnwindSafe for BeginFrameReturns
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