Struct neon::types::JsPromise [−][src]
#[repr(C)]pub struct JsPromise(_);
This is supported on crate feature
promise-api
only.Expand description
The JavaScript Promise
value.
JsPromise
may be constructed with Context::promise
.
Trait Implementations
fn get<'a, C: Context<'a>, K: PropertyKey>(
self,
cx: &mut C,
key: K
) -> NeonResult<Handle<'a, JsValue>>
This is supported on crate feature
napi-6
only.fn set<'a, C: Context<'a>, K: PropertyKey, W: Value>(
self,
cx: &mut C,
key: K,
val: Handle<'_, W>
) -> NeonResult<bool>
Auto Trait Implementations
impl RefUnwindSafe for JsPromise
impl UnwindSafe for JsPromise
Blanket Implementations
Mutably borrows from an owned value. Read more