Struct chrome_remote_interface_model::runtime::AddBindingCommand [−][src]
Runtime
and experimental
only.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
impl AddBindingCommand
[src]
pub fn new(
name: String,
execution_context_id: Option<ExecutionContextId>,
execution_context_name: Option<String>
) -> Self
[src]
name: String,
execution_context_id: Option<ExecutionContextId>,
execution_context_name: Option<String>
) -> Self
pub fn name(&self) -> &str
[src]
pub fn execution_context_id(&self) -> Option<&ExecutionContextId>
[src]
If specified, the binding would only be exposed to the specified
execution context. If omitted and executionContextName
is not set,
the binding is exposed to all execution contexts of the target.
This parameter is mutually exclusive with executionContextName
.
pub fn execution_context_name(&self) -> Option<&String>
[src]
If specified, the binding is exposed to the executionContext with
matching name, even for contexts created after the binding is added.
See also ExecutionContext.name
and worldName
parameter to
Page.addScriptToEvaluateOnNewDocument
.
This parameter is mutually exclusive with executionContextId
.
Trait Implementations
impl Clone for AddBindingCommand
[src]
fn clone(&self) -> AddBindingCommand
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Command for AddBindingCommand
[src]
type Return = AddBindingReturn
Return type.
const METHOD: &'static str
[src]
fn into_request(self, session_id: Option<SessionId>, id: u32) -> Request<Self> where
Self: Sized,
[src]
Self: Sized,
impl Debug for AddBindingCommand
[src]
impl<'de> Deserialize<'de> for AddBindingCommand
[src]
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
__D: Deserializer<'de>,
impl Serialize for AddBindingCommand
[src]
Auto Trait Implementations
impl RefUnwindSafe for AddBindingCommand
[src]
impl Send for AddBindingCommand
[src]
impl Sync for AddBindingCommand
[src]
impl Unpin for AddBindingCommand
[src]
impl UnwindSafe for AddBindingCommand
[src]
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>,
[src]
T: for<'de> Deserialize<'de>,
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,