Struct napi_h::bindgen_prelude::Promise
source · pub struct Promise<T: FromNapiValue> { /* private fields */ }
Trait Implementations§
source§impl<T: FromNapiValue> Drop for Promise<T>
impl<T: FromNapiValue> Drop for Promise<T>
source§impl<T: FromNapiValue> FromNapiValue for Promise<T>
impl<T: FromNapiValue> FromNapiValue for Promise<T>
source§unsafe 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>
source§impl<T: FromNapiValue> Future for Promise<T>
impl<T: FromNapiValue> Future for Promise<T>
source§impl<T: FromNapiValue> TypeName for Promise<T>
impl<T: FromNapiValue> TypeName for Promise<T>
source§impl<T: FromNapiValue> ValidateNapiValue for Promise<T>
impl<T: FromNapiValue> ValidateNapiValue for Promise<T>
source§unsafe fn validate(env: napi_env, napi_val: napi_value) -> Result<napi_value>
unsafe fn validate(env: napi_env, napi_val: napi_value) -> Result<napi_value>
Safety Read more
impl<T: FromNapiValue + Send> Send for Promise<T>
Auto Trait Implementations§
impl<T> Freeze for Promise<T>
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§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
source§impl<F> IntoFuture for Fwhere
F: Future,
impl<F> IntoFuture for Fwhere
F: Future,
§type IntoFuture = F
type IntoFuture = F
Which kind of future are we turning this into?
source§fn into_future(self) -> <F as IntoFuture>::IntoFuture
fn into_future(self) -> <F as IntoFuture>::IntoFuture
Creates a future from a value. Read more