pub struct BeginFrameReturns {
pub has_damage: bool,
pub screenshot_data: Option<Binary>,
}
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. 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§
source§impl BeginFrameReturns
impl BeginFrameReturns
pub fn new(has_damage: impl Into<bool>) -> BeginFrameReturns
source§impl BeginFrameReturns
impl BeginFrameReturns
pub fn builder() -> BeginFrameReturnsBuilder
Trait Implementations§
source§impl Clone for BeginFrameReturns
impl Clone for BeginFrameReturns
source§fn clone(&self) -> BeginFrameReturns
fn clone(&self) -> BeginFrameReturns
Returns a copy 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<'de> Deserialize<'de> for BeginFrameReturns
impl<'de> Deserialize<'de> for BeginFrameReturns
source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<BeginFrameReturns, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<BeginFrameReturns, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl PartialEq for BeginFrameReturns
impl PartialEq for BeginFrameReturns
source§impl Serialize for BeginFrameReturns
impl Serialize for BeginFrameReturns
source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl StructuralPartialEq for BeginFrameReturns
Auto Trait Implementations§
impl Freeze for BeginFrameReturns
impl RefUnwindSafe for BeginFrameReturns
impl Send for BeginFrameReturns
impl Sync for BeginFrameReturns
impl Unpin 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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)