pub struct AddBinding { /* private fields */ }Expand description
If executionContextId is empty, adds binding with the given name on the global objects of all inspected contexts, including those created later, bindings survive reloads. Binding function takes exactly one argument, this argument should be string, in case of any other input, function throws an exception. Each binding function call produces Runtime.bindingCalled notification.
Implementations§
Source§impl AddBinding
impl AddBinding
pub fn new(name: impl Into<String>) -> Self
pub fn with_execution_context_id( self, execution_context_id: impl Into<ExecutionContextId>, ) -> Self
pub fn with_execution_context_name( self, execution_context_name: impl Into<String>, ) -> Self
Trait Implementations§
Source§impl Clone for AddBinding
impl Clone for AddBinding
Source§fn clone(&self) -> AddBinding
fn clone(&self) -> AddBinding
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 Command for AddBinding
impl Command for AddBinding
Source§impl Debug for AddBinding
impl Debug for AddBinding
Auto Trait Implementations§
impl Freeze for AddBinding
impl RefUnwindSafe for AddBinding
impl Send for AddBinding
impl Sync for AddBinding
impl Unpin for AddBinding
impl UnwindSafe for AddBinding
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