pub struct SetAutoAttachParams {
pub auto_attach: bool,
pub wait_for_debugger_on_start: bool,
pub flatten: Option<bool>,
pub filter: Option<TargetFilter>,
}
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.
setAutoAttach
Fields§
§auto_attach: bool
Whether to auto-attach to related targets.
wait_for_debugger_on_start: bool
Whether to pause new targets when attaching to them. Use Runtime.runIfWaitingForDebugger
to run paused targets.
flatten: 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.
filter: Option<TargetFilter>
Only targets matching filter will be attached.
Implementations§
Source§impl SetAutoAttachParams
impl SetAutoAttachParams
pub fn builder() -> SetAutoAttachParamsBuilder
Source§impl SetAutoAttachParams
impl SetAutoAttachParams
pub const IDENTIFIER: &'static str = "Target.setAutoAttach"
Trait Implementations§
Source§impl Clone for SetAutoAttachParams
impl Clone for SetAutoAttachParams
Source§fn clone(&self) -> SetAutoAttachParams
fn clone(&self) -> SetAutoAttachParams
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Command for SetAutoAttachParams
impl Command for SetAutoAttachParams
Source§impl Debug for SetAutoAttachParams
impl Debug for SetAutoAttachParams
Source§impl<'de> Deserialize<'de> for SetAutoAttachParams
impl<'de> Deserialize<'de> for SetAutoAttachParams
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<SetAutoAttachParams, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<SetAutoAttachParams, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Source§impl Method for SetAutoAttachParams
impl Method for SetAutoAttachParams
Source§fn identifier(&self) -> Cow<'static, str>
fn identifier(&self) -> Cow<'static, str>
DOM.removeNode
Source§fn domain_name(&self) -> Cow<'static, str>
fn domain_name(&self) -> Cow<'static, str>
DOM
Source§fn method_name(&self) -> Cow<'static, str>
fn method_name(&self) -> Cow<'static, str>
removeNode