pub struct ExecutionContextCreatedEvent { /* private fields */ }Available on crate feature
Runtime only.Expand description
Issued when new execution context is created.
Implementations§
Source§impl ExecutionContextCreatedEvent
impl ExecutionContextCreatedEvent
pub fn new(context: ExecutionContextDescription) -> Self
Sourcepub fn context(&self) -> &ExecutionContextDescription
pub fn context(&self) -> &ExecutionContextDescription
A newly created execution context.
Methods from Deref<Target = ExecutionContextDescription>§
Sourcepub fn id(&self) -> &ExecutionContextId
pub fn id(&self) -> &ExecutionContextId
Unique id of the execution context. It can be used to specify in which execution context script evaluation should be performed.
Sourcepub fn unique_id(&self) -> &str
Available on crate feature experimental only.
pub fn unique_id(&self) -> &str
experimental only.A system-unique execution context identifier. Unlike the id, this is unique accross multiple processes, so can be reliably used to identify specific context while backend performs a cross-process navigation.
Sourcepub fn aux_data(&self) -> Option<&ExecutionContextDescriptionAuxData>
pub fn aux_data(&self) -> Option<&ExecutionContextDescriptionAuxData>
Embedder-specific auxiliary data.
Trait Implementations§
Source§impl Clone for ExecutionContextCreatedEvent
impl Clone for ExecutionContextCreatedEvent
Source§fn clone(&self) -> ExecutionContextCreatedEvent
fn clone(&self) -> ExecutionContextCreatedEvent
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 Debug for ExecutionContextCreatedEvent
impl Debug for ExecutionContextCreatedEvent
Source§impl Deref for ExecutionContextCreatedEvent
impl Deref for ExecutionContextCreatedEvent
Source§impl<'de> Deserialize<'de> for ExecutionContextCreatedEvent
impl<'de> Deserialize<'de> for ExecutionContextCreatedEvent
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 Freeze for ExecutionContextCreatedEvent
impl RefUnwindSafe for ExecutionContextCreatedEvent
impl Send for ExecutionContextCreatedEvent
impl Sync for ExecutionContextCreatedEvent
impl Unpin for ExecutionContextCreatedEvent
impl UnwindSafe for ExecutionContextCreatedEvent
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