Struct napi::bindgen_prelude::Promise
source · [−]pub struct Promise<T: FromNapiValue> { /* private fields */ }
Trait Implementations
sourceimpl<T: FromNapiValue> FromNapiValue for Promise<T>
impl<T: FromNapiValue> FromNapiValue for Promise<T>
sourceunsafe fn from_napi_value(env: napi_env, napi_val: napi_value) -> Result<Self>
unsafe fn from_napi_value(env: napi_env, napi_val: napi_value) -> Result<Self>
Safety Read more
fn from_unknown(value: JsUnknown) -> Result<Self>
sourceimpl<T: FromNapiValue> Future for Promise<T>
impl<T: FromNapiValue> Future for Promise<T>
sourceimpl<T: FromNapiValue> TypeName for Promise<T>
impl<T: FromNapiValue> TypeName for Promise<T>
sourceimpl<T: FromNapiValue> ValidateNapiValue for Promise<T>
impl<T: FromNapiValue> ValidateNapiValue for Promise<T>
impl<T: FromNapiValue> Send for Promise<T>
Auto Trait Implementations
impl<T> !RefUnwindSafe for Promise<T>
impl<T> !Sync for Promise<T>
impl<T> Unpin for Promise<T>
impl<T> !UnwindSafe for Promise<T>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<F> IntoFuture for F where
F: Future,
impl<F> IntoFuture for F where
F: Future,
type Output = <F as Future>::Output
type Output = <F as Future>::Output
🔬 This is a nightly-only experimental API. (
into_future
)The output that the future will produce on completion.
type IntoFuture = F
type IntoFuture = F
🔬 This is a nightly-only experimental API. (
into_future
)Which kind of future are we turning this into?
sourcefn into_future(self) -> <F as IntoFuture>::IntoFuture
fn into_future(self) -> <F as IntoFuture>::IntoFuture
🔬 This is a nightly-only experimental API. (
into_future
)Creates a future from a value.