pub struct AddBinding {
pub method: AddBindingMethod,
pub params: AddBindingParams,
}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. addBinding
Fields§
§method: AddBindingMethod§params: AddBindingParamsImplementations§
Source§impl AddBinding
impl AddBinding
pub fn builder() -> AddBindingBuilder
Source§impl AddBinding
impl AddBinding
pub const IDENTIFIER: &'static str = "Runtime.addBinding"
pub fn identifier(&self) -> &'static str
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 CommandResult for AddBinding
impl CommandResult for AddBinding
type Result = AddBindingResult
fn result_from_value(result: Value) -> Result<Self::Result>
Source§impl Debug for AddBinding
impl Debug for AddBinding
Source§impl<'de> Deserialize<'de> for AddBinding
impl<'de> Deserialize<'de> for AddBinding
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<AddBinding> for Command
impl From<AddBinding> for Command
Source§fn from(v: AddBinding) -> Self
fn from(v: AddBinding) -> Self
Converts to this type from the input type.
Source§impl From<AddBinding> for JsProtocolCommands
impl From<AddBinding> for JsProtocolCommands
Source§fn from(v: AddBinding) -> Self
fn from(v: AddBinding) -> Self
Converts to this type from the input type.
Source§impl From<AddBinding> for RuntimeCommands
impl From<AddBinding> for RuntimeCommands
Source§fn from(v: AddBinding) -> Self
fn from(v: AddBinding) -> Self
Converts to this type from the input type.
Source§impl PartialEq for AddBinding
impl PartialEq for AddBinding
Source§impl Serialize for AddBinding
impl Serialize for AddBinding
Source§impl TryFrom<Command> for AddBinding
impl TryFrom<Command> for AddBinding
Source§impl TryFrom<JsProtocolCommands> for AddBinding
impl TryFrom<JsProtocolCommands> for AddBinding
Source§type Error = JsProtocolCommands
type Error = JsProtocolCommands
The type returned in the event of a conversion error.
Source§fn try_from(
e: JsProtocolCommands,
) -> Result<Self, <AddBinding as TryFrom<JsProtocolCommands>>::Error>
fn try_from( e: JsProtocolCommands, ) -> Result<Self, <AddBinding as TryFrom<JsProtocolCommands>>::Error>
Performs the conversion.
Source§impl TryFrom<RuntimeCommands> for AddBinding
impl TryFrom<RuntimeCommands> for AddBinding
Source§type Error = RuntimeCommands
type Error = RuntimeCommands
The type returned in the event of a conversion error.
Source§fn try_from(
e: RuntimeCommands,
) -> Result<Self, <AddBinding as TryFrom<RuntimeCommands>>::Error>
fn try_from( e: RuntimeCommands, ) -> Result<Self, <AddBinding as TryFrom<RuntimeCommands>>::Error>
Performs the conversion.
impl StructuralPartialEq 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 UnsafeUnpin 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