pub struct TracingOptions {
pub name: Option<String>,
pub screenshots: bool,
pub snapshots: bool,
pub sources: bool,
pub title: Option<String>,
}Expand description
Options for starting a trace.
Fields§
§name: Option<String>Name for the trace (appears in Trace Viewer).
screenshots: boolWhether to capture screenshots during tracing.
snapshots: boolWhether to capture DOM snapshots.
sources: boolWhether to include source files.
title: Option<String>Title to display in Trace Viewer.
Implementations§
Source§impl TracingOptions
impl TracingOptions
Sourcepub fn screenshots(self, enabled: bool) -> Self
pub fn screenshots(self, enabled: bool) -> Self
Enable screenshot capture during tracing.
Trait Implementations§
Source§impl Clone for TracingOptions
impl Clone for TracingOptions
Source§fn clone(&self) -> TracingOptions
fn clone(&self) -> TracingOptions
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 TracingOptions
impl Debug for TracingOptions
Source§impl Default for TracingOptions
impl Default for TracingOptions
Source§fn default() -> TracingOptions
fn default() -> TracingOptions
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for TracingOptions
impl RefUnwindSafe for TracingOptions
impl Send for TracingOptions
impl Sync for TracingOptions
impl Unpin for TracingOptions
impl UnwindSafe for TracingOptions
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