pub struct ExposeDevToolsProtocol {
pub method: ExposeDevToolsProtocolMethod,
pub params: ExposeDevToolsProtocolParams,
}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 protocolbinding.onmessage = json => handleMessage(json)- a callback that will be called for the protocol notifications and command responses. exposeDevToolsProtocol
Fields§
§method: ExposeDevToolsProtocolMethod§params: ExposeDevToolsProtocolParamsImplementations§
Source§impl ExposeDevToolsProtocol
impl ExposeDevToolsProtocol
pub fn builder() -> ExposeDevToolsProtocolBuilder
Source§impl ExposeDevToolsProtocol
impl ExposeDevToolsProtocol
pub const IDENTIFIER: &'static str = "Target.exposeDevToolsProtocol"
pub fn identifier(&self) -> &'static str
Trait Implementations§
Source§impl Clone for ExposeDevToolsProtocol
impl Clone for ExposeDevToolsProtocol
Source§fn clone(&self) -> ExposeDevToolsProtocol
fn clone(&self) -> ExposeDevToolsProtocol
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 ExposeDevToolsProtocol
impl CommandResult for ExposeDevToolsProtocol
type Result = ExposeDevToolsProtocolResult
fn result_from_value(result: Value) -> Result<Self::Result>
Source§impl Debug for ExposeDevToolsProtocol
impl Debug for ExposeDevToolsProtocol
Source§impl<'de> Deserialize<'de> for ExposeDevToolsProtocol
impl<'de> Deserialize<'de> for ExposeDevToolsProtocol
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<ExposeDevToolsProtocol> for BrowserProtocolCommands
impl From<ExposeDevToolsProtocol> for BrowserProtocolCommands
Source§fn from(v: ExposeDevToolsProtocol) -> Self
fn from(v: ExposeDevToolsProtocol) -> Self
Converts to this type from the input type.
Source§impl From<ExposeDevToolsProtocol> for Command
impl From<ExposeDevToolsProtocol> for Command
Source§fn from(v: ExposeDevToolsProtocol) -> Self
fn from(v: ExposeDevToolsProtocol) -> Self
Converts to this type from the input type.
Source§impl From<ExposeDevToolsProtocol> for TargetCommands
impl From<ExposeDevToolsProtocol> for TargetCommands
Source§fn from(v: ExposeDevToolsProtocol) -> Self
fn from(v: ExposeDevToolsProtocol) -> Self
Converts to this type from the input type.
Source§impl PartialEq for ExposeDevToolsProtocol
impl PartialEq for ExposeDevToolsProtocol
Source§impl Serialize for ExposeDevToolsProtocol
impl Serialize for ExposeDevToolsProtocol
Source§impl TryFrom<BrowserProtocolCommands> for ExposeDevToolsProtocol
impl TryFrom<BrowserProtocolCommands> for ExposeDevToolsProtocol
Source§type Error = BrowserProtocolCommands
type Error = BrowserProtocolCommands
The type returned in the event of a conversion error.
Source§fn try_from(
e: BrowserProtocolCommands,
) -> Result<Self, <ExposeDevToolsProtocol as TryFrom<BrowserProtocolCommands>>::Error>
fn try_from( e: BrowserProtocolCommands, ) -> Result<Self, <ExposeDevToolsProtocol as TryFrom<BrowserProtocolCommands>>::Error>
Performs the conversion.
Source§impl TryFrom<Command> for ExposeDevToolsProtocol
impl TryFrom<Command> for ExposeDevToolsProtocol
Source§impl TryFrom<TargetCommands> for ExposeDevToolsProtocol
impl TryFrom<TargetCommands> for ExposeDevToolsProtocol
Source§type Error = TargetCommands
type Error = TargetCommands
The type returned in the event of a conversion error.
Source§fn try_from(
e: TargetCommands,
) -> Result<Self, <ExposeDevToolsProtocol as TryFrom<TargetCommands>>::Error>
fn try_from( e: TargetCommands, ) -> Result<Self, <ExposeDevToolsProtocol as TryFrom<TargetCommands>>::Error>
Performs the conversion.
impl StructuralPartialEq for ExposeDevToolsProtocol
Auto Trait Implementations§
impl Freeze for ExposeDevToolsProtocol
impl RefUnwindSafe for ExposeDevToolsProtocol
impl Send for ExposeDevToolsProtocol
impl Sync for ExposeDevToolsProtocol
impl Unpin for ExposeDevToolsProtocol
impl UnsafeUnpin for ExposeDevToolsProtocol
impl UnwindSafe for ExposeDevToolsProtocol
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