[−][src]Struct rusty_v8::scope::Entered
A wrapper around the an instantiated and entered scope object.
Methods
impl<'s, S, P> Entered<'s, S, P> where
Self: InIsolate,
[src]
Self: InIsolate,
impl<'s, 'p: 's, S, P> Entered<'s, S, P> where
Self: ToLocal<'p>,
[src]
Self: ToLocal<'p>,
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]
Self: EscapeLocal<'s, 'p>,
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]
P: ToLocalOrReturnsLocal<'p>,
impl<'s, 'p: 's, P> EscapeLocal<'s, 'p> for Entered<'s, ContextScope, P> where
P: EscapeLocal<'s, 'p>,
[src]
P: EscapeLocal<'s, 'p>,
impl<'s, 'p: 's, P> EscapeLocal<'s, 'p> for Entered<'s, HandleScope, P> where
P: EscapeLocal<'s, 'p>,
[src]
P: EscapeLocal<'s, 'p>,
impl<'s, S, P> InIsolate for Entered<'s, S, P> where
S: GetRawIsolate,
[src]
S: GetRawIsolate,
impl<'s, 'p: 's, P> ToLocal<'p> for Entered<'s, ContextScope, P> where
P: ToLocal<'p>,
[src]
P: ToLocal<'p>,
unsafe fn to_local<T>(&mut self, ptr: *mut T) -> Option<Local<'s, T>>
[src]
fn get_current_context(&mut self) -> Option<Local<'s, Context>>
[src]
fn get_entered_or_microtask_context(&mut self) -> Option<Local<'s, Context>>
[src]
impl<'s> ToLocal<'s> for Entered<'s, FunctionCallbackInfo>
[src]
unsafe fn to_local<T>(&mut self, ptr: *mut T) -> Option<Local<'s, T>>
[src]
fn get_current_context(&mut self) -> Option<Local<'s, Context>>
[src]
fn get_entered_or_microtask_context(&mut self) -> Option<Local<'s, Context>>
[src]
impl<'s> ToLocal<'s> for Entered<'s, PropertyCallbackInfo>
[src]
unsafe fn to_local<T>(&mut self, ptr: *mut T) -> Option<Local<'s, T>>
[src]
fn get_current_context(&mut self) -> Option<Local<'s, Context>>
[src]
fn get_entered_or_microtask_context(&mut self) -> Option<Local<'s, Context>>
[src]
impl<'s, P> ToLocal<'s> for Entered<'s, HandleScope, P>
[src]
unsafe fn to_local<T>(&mut self, ptr: *mut T) -> Option<Local<'s, T>>
[src]
fn get_current_context(&mut self) -> Option<Local<'s, Context>>
[src]
fn get_entered_or_microtask_context(&mut self) -> Option<Local<'s, Context>>
[src]
impl<'s, P> ToLocal<'s> for Entered<'s, EscapableHandleScope, P>
[src]
unsafe fn to_local<T>(&mut self, ptr: *mut T) -> Option<Local<'s, T>>
[src]
fn get_current_context(&mut self) -> Option<Local<'s, Context>>
[src]
fn get_entered_or_microtask_context(&mut self) -> Option<Local<'s, Context>>
[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,
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]
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>,