[−][src]Struct rusty_v8::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.
fn deref(&self) -> &Self::Target
[src]
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]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,