pub struct SetAutoAttachBuilder { /* private fields */ }Expand description
Builder for SetAutoAttach.
Implementations§
Source§impl SetAutoAttachBuilder
impl SetAutoAttachBuilder
Sourcepub fn auto_attach<VALUE: Into<bool>>(&mut self, value: VALUE) -> &mut Self
pub fn auto_attach<VALUE: Into<bool>>(&mut self, value: VALUE) -> &mut Self
Whether to auto-attach to related targets.
Sourcepub fn wait_for_debugger_on_start<VALUE: Into<bool>>(
&mut self,
value: VALUE,
) -> &mut Self
pub fn wait_for_debugger_on_start<VALUE: Into<bool>>( &mut self, value: VALUE, ) -> &mut Self
Whether to pause new targets when attaching to them. Use Runtime.runIfWaitingForDebugger
to run paused targets.
Sourcepub fn flatten<VALUE: Into<bool>>(&mut self, value: VALUE) -> &mut Self
pub fn flatten<VALUE: Into<bool>>(&mut self, value: VALUE) -> &mut Self
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<VALUE: Into<TargetFilter>>(&mut self, value: VALUE) -> &mut Self
pub fn filter<VALUE: Into<TargetFilter>>(&mut self, value: VALUE) -> &mut Self
Only targets matching filter will be attached.
Sourcepub fn build(&self) -> Result<SetAutoAttach, SetAutoAttachBuilderError>
pub fn build(&self) -> Result<SetAutoAttach, SetAutoAttachBuilderError>
Trait Implementations§
Source§impl Clone for SetAutoAttachBuilder
impl Clone for SetAutoAttachBuilder
Source§fn clone(&self) -> SetAutoAttachBuilder
fn clone(&self) -> SetAutoAttachBuilder
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 moreAuto Trait Implementations§
impl Freeze for SetAutoAttachBuilder
impl RefUnwindSafe for SetAutoAttachBuilder
impl Send for SetAutoAttachBuilder
impl Sync for SetAutoAttachBuilder
impl Unpin for SetAutoAttachBuilder
impl UnsafeUnpin for SetAutoAttachBuilder
impl UnwindSafe for SetAutoAttachBuilder
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