pub struct FrameSnapshotEvent {Show 14 fields
pub call_id: String,
pub phase: ActionPhase,
pub snapshot_name: Option<String>,
pub page_id: String,
pub frame_id: String,
pub frame_url: String,
pub doctype: String,
pub html: Value,
pub viewport: Option<Viewport>,
pub timestamp: f64,
pub wall_time: f64,
pub collection_time: f64,
pub is_main_frame: bool,
pub resource_overrides: Vec<ResourceOverride>,
}Expand description
Per-frame DOM snapshot. Includes the full DOM payload, which can be sizeable; callers iterating on snapshots for many frames should expect the per-event size to dominate the overall trace memory budget.
A snapshot belongs to the action whose call_id it names, at the
moment its phase says. Trace v9 writes the phase; v8 named each
snapshot (before@<call>) and the phase is read back from that name,
so the link is the same on both formats.
Fields§
§call_id: String§phase: ActionPhaseThe moment of the action this snapshot captured.
snapshot_name: Option<String>The v8 snapshot name that the action’s own events refer to. None
on v9, which stopped naming snapshots.
page_id: String§frame_id: String§frame_url: String§doctype: String§html: ValueThe serialized DOM, in the trace viewer’s nested-array encoding.
viewport: Option<Viewport>§timestamp: f64§wall_time: f64§collection_time: f64§is_main_frame: bool§resource_overrides: Vec<ResourceOverride>Trait Implementations§
Source§impl Clone for FrameSnapshotEvent
impl Clone for FrameSnapshotEvent
Source§fn clone(&self) -> FrameSnapshotEvent
fn clone(&self) -> FrameSnapshotEvent
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 FrameSnapshotEvent
impl Debug for FrameSnapshotEvent
Source§impl From<FrameSnapshotWire> for FrameSnapshotEvent
impl From<FrameSnapshotWire> for FrameSnapshotEvent
Source§fn from(wire: FrameSnapshotWire) -> Self
fn from(wire: FrameSnapshotWire) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for FrameSnapshotEvent
impl RefUnwindSafe for FrameSnapshotEvent
impl Send for FrameSnapshotEvent
impl Sync for FrameSnapshotEvent
impl Unpin for FrameSnapshotEvent
impl UnsafeUnpin for FrameSnapshotEvent
impl UnwindSafe for FrameSnapshotEvent
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