Enum rusty_v8::PromiseHookType[][src]

#[repr(C)]pub enum PromiseHookType {
    Init,
    Resolve,
    Before,
    After,
}

PromiseHook with type Init is called when a new promise is created. When a new promise is created as part of the chain in the case of Promise.then or in the intermediate promises created by Promise.{race, all}/AsyncFunctionAwait, we pass the parent promise otherwise we pass undefined.

PromiseHook with type Resolve is called at the beginning of resolve or reject function defined by CreateResolvingFunctions.

PromiseHook with type Before is called at the beginning of the PromiseReactionJob.

PromiseHook with type After is called right at the end of the PromiseReactionJob.

Variants

Init
Resolve
Before
After

Trait Implementations

impl Clone for PromiseHookType[src]

impl Copy for PromiseHookType[src]

impl Debug for PromiseHookType[src]

impl PartialEq<PromiseHookType> for PromiseHookType[src]

impl StructuralPartialEq for PromiseHookType[src]

Auto Trait Implementations

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> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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.