pub struct ExposeDevToolsProtocolParams<'a> { /* private fields */ }Expand description
Inject object to the target’s main frame that provides a communication channel with browser target.
Injected object will be available as ‘window[bindingName]’.
The object has the following API:
- ‘binding.send(json)’ - a method to send messages over the remote debugging protocol
- ‘binding.onmessage = json => handleMessage(json)’ - a callback that will be called for the protocol notifications and command responses.
Implementations§
Source§impl<'a> ExposeDevToolsProtocolParams<'a>
impl<'a> ExposeDevToolsProtocolParams<'a>
Sourcepub fn builder(
target_id: impl Into<TargetID<'a>>,
) -> ExposeDevToolsProtocolParamsBuilder<'a>
pub fn builder( target_id: impl Into<TargetID<'a>>, ) -> ExposeDevToolsProtocolParamsBuilder<'a>
Creates a builder for this type with the required parameters:
target_id:
pub fn target_id(&self) -> &TargetID<'a>
Sourcepub fn binding_name(&self) -> Option<&str>
pub fn binding_name(&self) -> Option<&str>
Binding name, ‘cdp’ if not specified.
Sourcepub fn inherit_permissions(&self) -> Option<bool>
pub fn inherit_permissions(&self) -> Option<bool>
If true, inherits the current root session’s permissions (default: false).
Trait Implementations§
Source§impl<'a> CdpCommand<'a> for ExposeDevToolsProtocolParams<'a>
impl<'a> CdpCommand<'a> for ExposeDevToolsProtocolParams<'a>
Source§impl<'a> Clone for ExposeDevToolsProtocolParams<'a>
impl<'a> Clone for ExposeDevToolsProtocolParams<'a>
Source§fn clone(&self) -> ExposeDevToolsProtocolParams<'a>
fn clone(&self) -> ExposeDevToolsProtocolParams<'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 ExposeDevToolsProtocolParams<'a>
impl<'a> Debug for ExposeDevToolsProtocolParams<'a>
Source§impl<'a> Default for ExposeDevToolsProtocolParams<'a>
impl<'a> Default for ExposeDevToolsProtocolParams<'a>
Source§fn default() -> ExposeDevToolsProtocolParams<'a>
fn default() -> ExposeDevToolsProtocolParams<'a>
Returns the “default value” for a type. Read more
Source§impl<'de, 'a> Deserialize<'de> for ExposeDevToolsProtocolParams<'a>
impl<'de, 'a> Deserialize<'de> for ExposeDevToolsProtocolParams<'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 ExposeDevToolsProtocolParams<'a>
impl<'a> RefUnwindSafe for ExposeDevToolsProtocolParams<'a>
impl<'a> Send for ExposeDevToolsProtocolParams<'a>
impl<'a> Sync for ExposeDevToolsProtocolParams<'a>
impl<'a> Unpin for ExposeDevToolsProtocolParams<'a>
impl<'a> UnsafeUnpin for ExposeDevToolsProtocolParams<'a>
impl<'a> UnwindSafe for ExposeDevToolsProtocolParams<'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