#[non_exhaustive]pub struct StartTracingOptions {
pub page: Option<Page>,
pub screenshots: Option<bool>,
pub categories: Option<Vec<String>>,
}Expand description
Options for Browser::start_tracing().
See: https://playwright.dev/docs/api/class-browser#browser-start-tracing
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.page: Option<Page>If specified, tracing captures screenshots for this page.
Pass Some(page) to associate the trace with a specific page.
screenshots: Option<bool>Whether to capture screenshots during tracing. Default false.
categories: Option<Vec<String>>Trace categories to enable. If omitted, uses a default set.
Implementations§
Source§impl StartTracingOptions
impl StartTracingOptions
Sourcepub fn screenshots(self, screenshots: bool) -> Self
pub fn screenshots(self, screenshots: bool) -> Self
Capture screenshots in the trace.
Sourcepub fn categories(self, categories: Vec<String>) -> Self
pub fn categories(self, categories: Vec<String>) -> Self
Chromium tracing categories to include.
Trait Implementations§
Source§impl Clone for StartTracingOptions
impl Clone for StartTracingOptions
Source§fn clone(&self) -> StartTracingOptions
fn clone(&self) -> StartTracingOptions
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 StartTracingOptions
impl Debug for StartTracingOptions
Source§impl Default for StartTracingOptions
impl Default for StartTracingOptions
Source§fn default() -> StartTracingOptions
fn default() -> StartTracingOptions
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl !Freeze for StartTracingOptions
impl !RefUnwindSafe for StartTracingOptions
impl !UnwindSafe for StartTracingOptions
impl Send for StartTracingOptions
impl Sync for StartTracingOptions
impl Unpin for StartTracingOptions
impl UnsafeUnpin for StartTracingOptions
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