pub struct SetBlackboxPatternsParams<'a> { /* private fields */ }Expand description
Replace previous blackbox patterns with passed ones. Forces backend to skip stepping/pausing in scripts with url matching one of the patterns. VM will try to leave blackboxed script by performing ‘step in’ several times, finally resorting to ‘step out’ if unsuccessful.
Implementations§
Source§impl<'a> SetBlackboxPatternsParams<'a>
impl<'a> SetBlackboxPatternsParams<'a>
Sourcepub fn builder(
patterns: Vec<Cow<'a, str>>,
) -> SetBlackboxPatternsParamsBuilder<'a>
pub fn builder( patterns: Vec<Cow<'a, str>>, ) -> SetBlackboxPatternsParamsBuilder<'a>
Creates a builder for this type with the required parameters:
patterns: Array of regexps that will be used to check script url for blackbox state.
Sourcepub fn patterns(&self) -> &[Cow<'a, str>]
pub fn patterns(&self) -> &[Cow<'a, str>]
Array of regexps that will be used to check script url for blackbox state.
Sourcepub fn skip_anonymous(&self) -> Option<bool>
pub fn skip_anonymous(&self) -> Option<bool>
If true, also ignore scripts with no source url.
Trait Implementations§
Source§impl<'a> CdpCommand<'a> for SetBlackboxPatternsParams<'a>
impl<'a> CdpCommand<'a> for SetBlackboxPatternsParams<'a>
Source§impl<'a> Clone for SetBlackboxPatternsParams<'a>
impl<'a> Clone for SetBlackboxPatternsParams<'a>
Source§fn clone(&self) -> SetBlackboxPatternsParams<'a>
fn clone(&self) -> SetBlackboxPatternsParams<'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 SetBlackboxPatternsParams<'a>
impl<'a> Debug for SetBlackboxPatternsParams<'a>
Source§impl<'a> Default for SetBlackboxPatternsParams<'a>
impl<'a> Default for SetBlackboxPatternsParams<'a>
Source§fn default() -> SetBlackboxPatternsParams<'a>
fn default() -> SetBlackboxPatternsParams<'a>
Returns the “default value” for a type. Read more
Source§impl<'de, 'a> Deserialize<'de> for SetBlackboxPatternsParams<'a>
impl<'de, 'a> Deserialize<'de> for SetBlackboxPatternsParams<'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 SetBlackboxPatternsParams<'a>
impl<'a> RefUnwindSafe for SetBlackboxPatternsParams<'a>
impl<'a> Send for SetBlackboxPatternsParams<'a>
impl<'a> Sync for SetBlackboxPatternsParams<'a>
impl<'a> Unpin for SetBlackboxPatternsParams<'a>
impl<'a> UnsafeUnpin for SetBlackboxPatternsParams<'a>
impl<'a> UnwindSafe for SetBlackboxPatternsParams<'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