[][src]Struct rusty_v8::scope::CallbackScope

pub struct CallbackScope<X = Contained> { /* fields omitted */ }

A CallbackScope can be used to obtain a mutable Isolate reference within a callback that is called by V8 on the thread that already has a Locker on the stack.

Using a CallbackScope in any other situation is unsafe. Also note that CallbackScope should not be used for function and property accessor callbacks; use FunctionCallbackScope and PropertyCallbackScope instead.

A CallbackScope can be created from the following inputs:

  • Local<Context>
  • Local<Message>
  • Local<Object>
  • Local<Promise>
  • Local<SharedArrayBuffer>
  • &PromiseRejectMessage

Methods

impl<'s> CallbackScope[src]

pub fn new<I>(input: I) -> Scope<'s, Self> where
    Scope<'s, Self>: From<I>, 
[src]

impl<'s> CallbackScope<Escapable>[src]

pub fn new_escapable<I>(input: I) -> Scope<'s, Self> where
    Scope<'s, Self>: From<I>, 
[src]

Trait Implementations

impl<'s, X> ScopeDefinition<'s> for CallbackScope<X>[src]

type Args = *mut Isolate

Auto Trait Implementations

impl<X> RefUnwindSafe for CallbackScope<X> where
    X: RefUnwindSafe

impl<X = Contained> !Send for CallbackScope<X>

impl<X = Contained> !Sync for CallbackScope<X>

impl<X> Unpin for CallbackScope<X> where
    X: Unpin

impl<X> UnwindSafe for CallbackScope<X> where
    X: UnwindSafe

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.