Struct napi::bindgen_prelude::CallbackContext
source · pub struct CallbackContext<T> {
pub env: Env,
pub value: T,
}Fields§
§env: Env§value: TTrait Implementations§
source§impl<T: ToNapiValue> ToNapiValue for CallbackContext<T>
impl<T: ToNapiValue> ToNapiValue for CallbackContext<T>
source§unsafe fn to_napi_value(env: napi_env, val: Self) -> Result<napi_value>
unsafe fn to_napi_value(env: napi_env, val: Self) -> Result<napi_value>
Safety Read more
Auto Trait Implementations§
impl<T> Freeze for CallbackContext<T>where
T: Freeze,
impl<T> RefUnwindSafe for CallbackContext<T>where
T: RefUnwindSafe,
impl<T> !Send for CallbackContext<T>
impl<T> !Sync for CallbackContext<T>
impl<T> Unpin for CallbackContext<T>where
T: Unpin,
impl<T> UnwindSafe for CallbackContext<T>where
T: UnwindSafe,
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