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>
pub fn builder( targetId: TargetID<'a>, ) -> ExposeDevToolsProtocolParamsBuilder<'a>
pub fn targetId(&self) -> &TargetID<'a>
pub fn bindingName(&self) -> Option<&str>
pub fn inheritPermissions(&self) -> Option<bool>
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