pub struct SetAutoAttachParams<'a> { /* private fields */ }Expand description
Controls whether to automatically attach to new targets which are considered to be directly related to this one (for example, iframes or workers). When turned on, attaches to all existing related targets as well. When turned off, automatically detaches from all currently attached targets. This also clears all targets added by ‘autoAttachRelated’ from the list of targets to watch for creation of related targets. You might want to call this recursively for auto-attached targets to attach to all available targets.
Implementations§
Source§impl<'a> SetAutoAttachParams<'a>
impl<'a> SetAutoAttachParams<'a>
Sourcepub fn builder(
auto_attach: bool,
wait_for_debugger_on_start: bool,
) -> SetAutoAttachParamsBuilder<'a>
pub fn builder( auto_attach: bool, wait_for_debugger_on_start: bool, ) -> SetAutoAttachParamsBuilder<'a>
Creates a builder for this type with the required parameters:
auto_attach: Whether to auto-attach to related targets.wait_for_debugger_on_start: Whether to pause new targets when attaching to them. UseRuntime.runIfWaitingForDebuggerto run paused targets.
Sourcepub fn auto_attach(&self) -> bool
pub fn auto_attach(&self) -> bool
Whether to auto-attach to related targets.
Sourcepub fn wait_for_debugger_on_start(&self) -> bool
pub fn wait_for_debugger_on_start(&self) -> bool
Whether to pause new targets when attaching to them. Use ‘Runtime.runIfWaitingForDebugger’ to run paused targets.
Sourcepub fn flatten(&self) -> Option<bool>
pub fn flatten(&self) -> Option<bool>
Enables “flat” access to the session via specifying sessionId attribute in the commands. We plan to make this the default, deprecate non-flattened mode, and eventually retire it. See crbug.com/991325.
Sourcepub fn filter(&self) -> Option<&TargetFilter<'a>>
pub fn filter(&self) -> Option<&TargetFilter<'a>>
Only targets matching filter will be attached.
Trait Implementations§
Source§impl<'a> CdpCommand<'a> for SetAutoAttachParams<'a>
impl<'a> CdpCommand<'a> for SetAutoAttachParams<'a>
Source§impl<'a> Clone for SetAutoAttachParams<'a>
impl<'a> Clone for SetAutoAttachParams<'a>
Source§fn clone(&self) -> SetAutoAttachParams<'a>
fn clone(&self) -> SetAutoAttachParams<'a>
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more