pub struct BeginFrameReturnObject {
pub has_damage: bool,
pub screenshot_data: 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§
§has_damage: 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.
screenshot_data: Option<String>Base64-encoded image data of the screenshot, if one was requested and successfully taken.
Trait Implementations§
Source§impl Clone for BeginFrameReturnObject
impl Clone for BeginFrameReturnObject
Source§fn clone(&self) -> BeginFrameReturnObject
fn clone(&self) -> BeginFrameReturnObject
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 BeginFrameReturnObject
impl Debug for BeginFrameReturnObject
Source§impl<'de> Deserialize<'de> for BeginFrameReturnObject
impl<'de> Deserialize<'de> for BeginFrameReturnObject
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
Source§impl PartialEq for BeginFrameReturnObject
impl PartialEq for BeginFrameReturnObject
Source§impl Serialize for BeginFrameReturnObject
impl Serialize for BeginFrameReturnObject
impl StructuralPartialEq for BeginFrameReturnObject
Auto Trait Implementations§
impl Freeze for BeginFrameReturnObject
impl RefUnwindSafe for BeginFrameReturnObject
impl Send for BeginFrameReturnObject
impl Sync for BeginFrameReturnObject
impl Unpin for BeginFrameReturnObject
impl UnsafeUnpin for BeginFrameReturnObject
impl UnwindSafe for BeginFrameReturnObject
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