Struct chrome_remote_interface_model::runtime::ExecutionContextCreatedEvent[][src]

pub struct ExecutionContextCreatedEvent { /* fields omitted */ }
This is supported on crate feature Runtime only.

Issued when new execution context is created.

Implementations

impl ExecutionContextCreatedEvent[src]

pub fn new(context: ExecutionContextDescription) -> Self[src]

pub fn context(&self) -> &ExecutionContextDescription[src]

A newly created execution context.

Methods from Deref<Target = ExecutionContextDescription>

pub fn id(&self) -> &ExecutionContextId[src]

Unique id of the execution context. It can be used to specify in which execution context script evaluation should be performed.

pub fn origin(&self) -> &str[src]

Execution context origin.

pub fn name(&self) -> &str[src]

Human readable name describing given context.

pub fn aux_data(&self) -> Option<&ExecutionContextDescriptionAuxData>[src]

Embedder-specific auxiliary data.

Trait Implementations

impl Clone for ExecutionContextCreatedEvent[src]

impl Debug for ExecutionContextCreatedEvent[src]

impl Deref for ExecutionContextCreatedEvent[src]

type Target = ExecutionContextDescription

The resulting type after dereferencing.

impl<'de> Deserialize<'de> for ExecutionContextCreatedEvent[src]

impl Serialize for ExecutionContextCreatedEvent[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.