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]

Returns the guard's associated context.

Returns the active context's global object.

Executes all the context's queued promise tasks.

Trait Implementations

impl<'a> Debug for ContextGuard<'a>
[src]

Formats the value using the given formatter.

impl<'a> Drop for ContextGuard<'a>
[src]

Resets the currently active context.