pub struct Enable {
pub method: EnableMethod,
pub params: EnableParams,
}Expand description
Enables reporting of execution contexts creation by means of executionContextCreated event.
When the reporting gets enabled the event will be sent immediately for each existing execution
context.
enable
Fields§
§method: EnableMethod§params: EnableParamsImplementations§
Source§impl Enable
impl Enable
pub const IDENTIFIER: &'static str = "Runtime.enable"
pub fn identifier(&self) -> &'static str
Trait Implementations§
Source§impl CommandResult for Enable
impl CommandResult for Enable
type Result = EnableResult
fn result_from_value(result: Value) -> Result<Self::Result>
Source§impl<'de> Deserialize<'de> for Enable
impl<'de> Deserialize<'de> for Enable
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<Enable> for JsProtocolCommands
impl From<Enable> for JsProtocolCommands
Source§impl From<Enable> for RuntimeCommands
impl From<Enable> for RuntimeCommands
Source§impl TryFrom<JsProtocolCommands> for Enable
impl TryFrom<JsProtocolCommands> for Enable
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, <Enable as TryFrom<JsProtocolCommands>>::Error>
fn try_from( e: JsProtocolCommands, ) -> Result<Self, <Enable as TryFrom<JsProtocolCommands>>::Error>
Performs the conversion.
Source§impl TryFrom<RuntimeCommands> for Enable
impl TryFrom<RuntimeCommands> for Enable
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, <Enable as TryFrom<RuntimeCommands>>::Error>
fn try_from( e: RuntimeCommands, ) -> Result<Self, <Enable as TryFrom<RuntimeCommands>>::Error>
Performs the conversion.
impl StructuralPartialEq for Enable
Auto Trait Implementations§
impl Freeze for Enable
impl RefUnwindSafe for Enable
impl Send for Enable
impl Sync for Enable
impl Unpin for Enable
impl UnsafeUnpin for Enable
impl UnwindSafe for Enable
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