pub struct AutoAttachRelatedParams<'a> { /* private fields */ }Expand description
Adds the specified target to the list of targets that will be monitored for any related target creation (such as child frames, child workers and new versions of service worker) and reported through ‘attachedToTarget’. The specified target is also auto-attached. This cancels the effect of any previous ‘setAutoAttach’ and is also cancelled by subsequent ‘setAutoAttach’. Only available at the Browser target.
Implementations§
Source§impl<'a> AutoAttachRelatedParams<'a>
impl<'a> AutoAttachRelatedParams<'a>
Sourcepub fn builder(
target_id: impl Into<TargetID<'a>>,
wait_for_debugger_on_start: bool,
) -> AutoAttachRelatedParamsBuilder<'a>
pub fn builder( target_id: impl Into<TargetID<'a>>, wait_for_debugger_on_start: bool, ) -> AutoAttachRelatedParamsBuilder<'a>
Creates a builder for this type with the required parameters:
target_id:wait_for_debugger_on_start: Whether to pause new targets when attaching to them. UseRuntime.runIfWaitingForDebuggerto run paused targets.
pub fn target_id(&self) -> &TargetID<'a>
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 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 AutoAttachRelatedParams<'a>
impl<'a> CdpCommand<'a> for AutoAttachRelatedParams<'a>
Source§impl<'a> Clone for AutoAttachRelatedParams<'a>
impl<'a> Clone for AutoAttachRelatedParams<'a>
Source§fn clone(&self) -> AutoAttachRelatedParams<'a>
fn clone(&self) -> AutoAttachRelatedParams<'a>
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<'a> Debug for AutoAttachRelatedParams<'a>
impl<'a> Debug for AutoAttachRelatedParams<'a>
Source§impl<'a> Default for AutoAttachRelatedParams<'a>
impl<'a> Default for AutoAttachRelatedParams<'a>
Source§fn default() -> AutoAttachRelatedParams<'a>
fn default() -> AutoAttachRelatedParams<'a>
Returns the “default value” for a type. Read more
Source§impl<'de, 'a> Deserialize<'de> for AutoAttachRelatedParams<'a>
impl<'de, 'a> Deserialize<'de> for AutoAttachRelatedParams<'a>
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl<'a> Freeze for AutoAttachRelatedParams<'a>
impl<'a> RefUnwindSafe for AutoAttachRelatedParams<'a>
impl<'a> Send for AutoAttachRelatedParams<'a>
impl<'a> Sync for AutoAttachRelatedParams<'a>
impl<'a> Unpin for AutoAttachRelatedParams<'a>
impl<'a> UnsafeUnpin for AutoAttachRelatedParams<'a>
impl<'a> UnwindSafe for AutoAttachRelatedParams<'a>
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