pub struct SetAutoAttach {
pub method: SetAutoAttachMethod,
pub params: SetAutoAttachParams,
}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§
§method: SetAutoAttachMethod§params: SetAutoAttachParamsImplementations§
Source§impl SetAutoAttach
impl SetAutoAttach
pub fn builder() -> SetAutoAttachBuilder
Source§impl SetAutoAttach
impl SetAutoAttach
pub const IDENTIFIER: &'static str = "Target.setAutoAttach"
pub fn identifier(&self) -> &'static str
Trait Implementations§
Source§impl Clone for SetAutoAttach
impl Clone for SetAutoAttach
Source§fn clone(&self) -> SetAutoAttach
fn clone(&self) -> SetAutoAttach
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 CommandResult for SetAutoAttach
impl CommandResult for SetAutoAttach
type Result = SetAutoAttachResult
fn result_from_value(result: Value) -> Result<Self::Result>
Source§impl Debug for SetAutoAttach
impl Debug for SetAutoAttach
Source§impl<'de> Deserialize<'de> for SetAutoAttach
impl<'de> Deserialize<'de> for SetAutoAttach
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
Source§impl From<SetAutoAttach> for BrowserProtocolCommands
impl From<SetAutoAttach> for BrowserProtocolCommands
Source§fn from(v: SetAutoAttach) -> Self
fn from(v: SetAutoAttach) -> Self
Converts to this type from the input type.
Source§impl From<SetAutoAttach> for Command
impl From<SetAutoAttach> for Command
Source§fn from(v: SetAutoAttach) -> Self
fn from(v: SetAutoAttach) -> Self
Converts to this type from the input type.
Source§impl From<SetAutoAttach> for TargetCommands
impl From<SetAutoAttach> for TargetCommands
Source§fn from(v: SetAutoAttach) -> Self
fn from(v: SetAutoAttach) -> Self
Converts to this type from the input type.
Source§impl PartialEq for SetAutoAttach
impl PartialEq for SetAutoAttach
Source§impl Serialize for SetAutoAttach
impl Serialize for SetAutoAttach
Source§impl TryFrom<BrowserProtocolCommands> for SetAutoAttach
impl TryFrom<BrowserProtocolCommands> for SetAutoAttach
Source§type Error = BrowserProtocolCommands
type Error = BrowserProtocolCommands
The type returned in the event of a conversion error.
Source§fn try_from(
e: BrowserProtocolCommands,
) -> Result<Self, <SetAutoAttach as TryFrom<BrowserProtocolCommands>>::Error>
fn try_from( e: BrowserProtocolCommands, ) -> Result<Self, <SetAutoAttach as TryFrom<BrowserProtocolCommands>>::Error>
Performs the conversion.
Source§impl TryFrom<Command> for SetAutoAttach
impl TryFrom<Command> for SetAutoAttach
Source§impl TryFrom<TargetCommands> for SetAutoAttach
impl TryFrom<TargetCommands> for SetAutoAttach
Source§type Error = TargetCommands
type Error = TargetCommands
The type returned in the event of a conversion error.
Source§fn try_from(
e: TargetCommands,
) -> Result<Self, <SetAutoAttach as TryFrom<TargetCommands>>::Error>
fn try_from( e: TargetCommands, ) -> Result<Self, <SetAutoAttach as TryFrom<TargetCommands>>::Error>
Performs the conversion.
impl StructuralPartialEq for SetAutoAttach
Auto Trait Implementations§
impl Freeze for SetAutoAttach
impl RefUnwindSafe for SetAutoAttach
impl Send for SetAutoAttach
impl Sync for SetAutoAttach
impl Unpin for SetAutoAttach
impl UnsafeUnpin for SetAutoAttach
impl UnwindSafe for SetAutoAttach
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