pub struct BeginFrame {
pub method: BeginFrameMethod,
pub params: BeginFrameParams,
}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§
§method: BeginFrameMethod§params: BeginFrameParamsImplementations§
Source§impl BeginFrame
impl BeginFrame
pub fn builder() -> BeginFrameBuilder
Source§impl BeginFrame
impl BeginFrame
pub const IDENTIFIER: &'static str = "HeadlessExperimental.beginFrame"
pub fn identifier(&self) -> &'static str
Trait Implementations§
Source§impl Clone for BeginFrame
impl Clone for BeginFrame
Source§fn clone(&self) -> BeginFrame
fn clone(&self) -> BeginFrame
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 CommandResult for BeginFrame
impl CommandResult for BeginFrame
type Result = BeginFrameResult
fn result_from_value(result: Value) -> Result<Self::Result>
Source§impl Debug for BeginFrame
impl Debug for BeginFrame
Source§impl<'de> Deserialize<'de> for BeginFrame
impl<'de> Deserialize<'de> for BeginFrame
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 From<BeginFrame> for BrowserProtocolCommands
impl From<BeginFrame> for BrowserProtocolCommands
Source§fn from(v: BeginFrame) -> Self
fn from(v: BeginFrame) -> Self
Converts to this type from the input type.
Source§impl From<BeginFrame> for Command
impl From<BeginFrame> for Command
Source§fn from(v: BeginFrame) -> Self
fn from(v: BeginFrame) -> Self
Converts to this type from the input type.
Source§impl From<BeginFrame> for HeadlessExperimentalCommands
impl From<BeginFrame> for HeadlessExperimentalCommands
Source§fn from(v: BeginFrame) -> Self
fn from(v: BeginFrame) -> Self
Converts to this type from the input type.
Source§impl PartialEq for BeginFrame
impl PartialEq for BeginFrame
Source§impl Serialize for BeginFrame
impl Serialize for BeginFrame
Source§impl TryFrom<BrowserProtocolCommands> for BeginFrame
impl TryFrom<BrowserProtocolCommands> for BeginFrame
Source§type Error = BrowserProtocolCommands
type Error = BrowserProtocolCommands
The type returned in the event of a conversion error.
Source§fn try_from(
e: BrowserProtocolCommands,
) -> Result<Self, <BeginFrame as TryFrom<BrowserProtocolCommands>>::Error>
fn try_from( e: BrowserProtocolCommands, ) -> Result<Self, <BeginFrame as TryFrom<BrowserProtocolCommands>>::Error>
Performs the conversion.
Source§impl TryFrom<Command> for BeginFrame
impl TryFrom<Command> for BeginFrame
Source§impl TryFrom<HeadlessExperimentalCommands> for BeginFrame
impl TryFrom<HeadlessExperimentalCommands> for BeginFrame
Source§type Error = HeadlessExperimentalCommands
type Error = HeadlessExperimentalCommands
The type returned in the event of a conversion error.
Source§fn try_from(
e: HeadlessExperimentalCommands,
) -> Result<Self, <BeginFrame as TryFrom<HeadlessExperimentalCommands>>::Error>
fn try_from( e: HeadlessExperimentalCommands, ) -> Result<Self, <BeginFrame as TryFrom<HeadlessExperimentalCommands>>::Error>
Performs the conversion.
impl StructuralPartialEq for BeginFrame
Auto Trait Implementations§
impl Freeze for BeginFrame
impl RefUnwindSafe for BeginFrame
impl Send for BeginFrame
impl Sync for BeginFrame
impl Unpin for BeginFrame
impl UnsafeUnpin for BeginFrame
impl UnwindSafe for BeginFrame
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