Struct rusty_v8::Global [−][src]
pub struct Global<T> { /* fields omitted */ }
Expand description
An object reference that is independent of any handle scope. Where a Local handle only lives as long as the HandleScope in which it was allocated, a global handle remains valid until it is explicitly disposed using reset().
A global handle contains a reference to a storage cell within the V8 engine which holds an object value and which is updated by the garbage collector whenever the object is moved.
Implementations
Trait Implementations
type Data = T
Returns a reference to the V8 heap object that this handle represents.
The handle does not get cloned, nor is it converted to a Local
handle. Read more
Reads the inner value contained in this handle, without verifying that
the this handle is hosted by the currently active Isolate
. Read more
type Data = T
Returns a reference to the V8 heap object that this handle represents.
The handle does not get cloned, nor is it converted to a Local
handle. Read more
Reads the inner value contained in this handle, without verifying that
the this handle is hosted by the currently active Isolate
. Read more
Auto Trait Implementations
impl<T> !RefUnwindSafe for Global<T>
impl<T> !UnwindSafe for Global<T>
Blanket Implementations
Mutably borrows from an owned value. Read more