[][src]Struct rusty_v8::scope::Entered

#[repr(C)]
pub struct Entered<'s, S, P = ()> { /* fields omitted */ }

A wrapper around the an instantiated and entered scope object.

Methods

impl<'s, S, P> Entered<'s, S, P> where
    Self: InIsolate
[src]

pub fn isolate(&mut self) -> &mut Isolate[src]

impl<'s, 'p: 's, S, P> Entered<'s, S, P> where
    Self: ToLocal<'p>, 
[src]

pub fn get_current_context(&mut self) -> Option<Local<'p, Context>>[src]

Returns the context of the currently running JavaScript, or the context on the top of the stack if no JavaScript is running.

pub fn get_entered_or_microtask_context(&mut self) -> Option<Local<'p, Context>>[src]

Returns either the last context entered through V8's C++ API, or the context of the currently running microtask while processing microtasks. If a context is entered while executing a microtask, that context is returned.

impl<'s, 'p: 's, S, P> Entered<'s, S, P> where
    Self: EscapeLocal<'s, 'p>, 
[src]

pub fn escape<T>(&mut self, local: Local<T>) -> Local<'p, T>[src]

Pushes the value into the previous scope and returns a handle to it. Cannot be called twice.

Trait Implementations

impl<'s, 'p: 's, P> EscapeLocal<'s, 'p> for Entered<'s, EscapableHandleScope, P> where
    P: ToLocalOrReturnsLocal<'p>, 
[src]

impl<'s, 'p: 's, P> EscapeLocal<'s, 'p> for Entered<'s, ContextScope, P> where
    P: EscapeLocal<'s, 'p>, 
[src]

impl<'s, 'p: 's, P> EscapeLocal<'s, 'p> for Entered<'s, HandleScope, P> where
    P: EscapeLocal<'s, 'p>, 
[src]

impl<'s, S, P> InIsolate for Entered<'s, S, P> where
    S: GetRawIsolate, 
[src]

impl<'s, 'p: 's, P> ToLocal<'p> for Entered<'s, ContextScope, P> where
    P: ToLocal<'p>, 
[src]

impl<'s> ToLocal<'s> for Entered<'s, FunctionCallbackInfo>[src]

impl<'s> ToLocal<'s> for Entered<'s, PropertyCallbackInfo>[src]

impl<'s, P> ToLocal<'s> for Entered<'s, HandleScope, P>[src]

impl<'s, P> ToLocal<'s> for Entered<'s, EscapableHandleScope, P>[src]

impl<'s, 'p: 's> ToLocalOrReturnsLocal<'p> for Entered<'s, CallbackScope<Escapable>>[src]

Auto Trait Implementations

impl<'s, S, P> RefUnwindSafe for Entered<'s, S, P> where
    P: RefUnwindSafe,
    S: RefUnwindSafe

impl<'s, S, P = ()> !Send for Entered<'s, S, P>

impl<'s, S, P = ()> !Sync for Entered<'s, S, P>

impl<'s, S, P> Unpin for Entered<'s, S, P>

impl<'s, S, P = ()> !UnwindSafe for Entered<'s, S, P>

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.