Struct chakracore::context::ContextGuard
[−]
[src]
#[must_use]pub struct ContextGuard<'a> { /* fields omitted */ }
A guard that keeps a context active while it is in scope.
Methods
impl<'a> ContextGuard<'a>
[src]
fn context(&self) -> Context
Returns the guard's associated context.
fn global(&self) -> Object
Returns the active context's global object.
fn execute_tasks(&self)
Executes all the context's queued promise tasks.
Trait Implementations
impl<'a> Debug for ContextGuard<'a>
[src]
impl<'a> Drop for ContextGuard<'a>
[src]
fn drop(&mut self)
Resets the currently active context.