[][src]Struct rusty_v8::Isolate

#[repr(transparent)]
pub struct Isolate(_);

Methods

impl Isolate[src]

pub fn new(params: UniqueRef<CreateParams>) -> Self[src]

Creates a new isolate. Does not change the currently entered isolate.

When an isolate is no longer used its resources should be freed by calling V8::dispose(). Using the delete operator is not allowed.

V8::initialize() must have run prior to this.

pub fn create_params() -> UniqueRef<CreateParams>[src]

Initial configuration parameters for a new Isolate.

pub fn enter(&mut self)[src]

Sets this isolate as the entered one for the current thread. Saves the previously entered one (if any), so that it can be restored when exiting. Re-entering an isolate is allowed.

pub fn exit(&mut self)[src]

Exits this isolate by restoring the previously entered one in the current thread. The isolate may still stay the same, if it was entered more than once.

Requires: self == Isolate::GetCurrent().

Trait Implementations

impl Deref for Isolate[src]

type Target = CxxIsolate

The resulting type after dereferencing.

impl DerefMut for Isolate[src]

impl Drop for Isolate[src]

Auto Trait Implementations

impl RefUnwindSafe for Isolate

impl Send for Isolate

impl Sync for Isolate

impl Unpin for Isolate

impl !UnwindSafe for Isolate

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.