Struct neon::context::ModuleContext[][src]

pub struct ModuleContext<'a> { /* fields omitted */ }

A view of the JS engine in the context of top-level initialization of a Neon module.

Methods

impl<'a> ModuleContext<'a>
[src]

Convenience method for exporting a Neon function from a module.

Convenience method for exporting a Neon class constructor from a module.

Exports a JavaScript value from a Neon module.

Produces a handle to a module's exports object.

Trait Implementations

impl<'a> UnwindSafe for ModuleContext<'a>
[src]

impl<'a> Context<'a> for ModuleContext<'a>
[src]

Lock the JavaScript engine, returning an RAII guard that keeps the lock active as long as the guard is alive. Read more

Convenience method for locking the JavaScript engine and borrowing a single JS value's internals. Read more

Convenience method for locking the JavaScript engine and mutably borrowing a single JS value's internals. Read more

Executes a computation in a new memory management scope. Read more

Executes a computation in a new memory management scope and computes a single result value that outlives the computation. Read more

Convenience method for creating a JsBoolean value.

Convenience method for creating a JsNumber value.

Convenience method for creating a JsString value. Read more

Convenience method for creating a JsString value. Read more

Convenience method for creating a JsNull value.

Convenience method for creating a JsUndefined value.

Convenience method for creating an empty JsObject value.

Convenience method for creating an empty JsArray value.

Convenience method for creating an empty JsArrayBuffer value.

Convenience method for creating an empty JsBuffer value.

Produces a handle to the JavaScript global object.

Throws a JS value.

Creates a direct instance of the Error class.

Creates an instance of the TypeError class.

Creates an instance of the RangeError class.

Throws a direct instance of the Error class.

Throws an instance of the TypeError class.

Throws an instance of the RangeError class.

Auto Trait Implementations

impl<'a> !Send for ModuleContext<'a>

impl<'a> !Sync for ModuleContext<'a>