Struct v8::isolate::Isolate [] [src]

pub struct Isolate(_);

Isolate represents an isolated instance of the V8 engine.

V8 isolates have completely separate states. Objects from one isolate must not be used in other isolates. The embedder can create multiple isolates and use them in parallel in multiple threads. An isolate can be entered by at most one thread at any given time. The Locker/Unlocker API must be used to synchronize.

Methods

impl Isolate
[src]

Creates a new isolate.

Creates a new isolate builder.

Creates a data from a set of raw pointers.

This isolate must at some point have been created by Isolate::new, since this library expects isolates to be configured a certain way and contain embedder information.

Returns the underlying raw pointer behind this isolate.

Returns the context bound to the current thread for this isolate.

A context will be bound by for example Context::make_current, or while inside of a function callback.

Runs all enqueued tasks until there are no more tasks available.

Runs a single enqueued task, if there is one. Returns true if a task was executed, and false if there are no pending tasks to run.

Runs as many idle tasks as possible within the specified deadline. It is not guaranteed that the execution of the tasks will take less time than the specified deadline.

Runs a single idle task within the specified deadline. It is not guaranteed that the execution of the task will take less time than the specified deadline. Returns true if a task was executed, and false if there are no pending tasks to run.

Enqueues the specified task to run as soon as possible.

Enqueues the specified task to run after the specified delay has passed.

Enqueues a task to be run when the isolate is considered to be "idle."

Whether this isolate was configured to support idle tasks.

Trait Implementations

impl Debug for Isolate
[src]

Formats the value using the given formatter.

impl Clone for Isolate
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Drop for Isolate
[src]

A method called when the value goes out of scope. Read more