Struct deno_napi::function::CallbackInfo
source · #[repr(C)]pub struct CallbackInfo {
pub env: napi_env,
pub cb: napi_callback,
pub cb_info: napi_callback_info,
pub args: *const c_void,
}
Fields
env: napi_env
cb: napi_callback
cb_info: napi_callback_info
args: *const c_void
Implementations
sourceimpl CallbackInfo
impl CallbackInfo
pub fn new_raw(
env: napi_env,
cb: napi_callback,
cb_info: napi_callback_info
) -> *mut Self
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for CallbackInfo
impl !Send for CallbackInfo
impl !Sync for CallbackInfo
impl Unpin for CallbackInfo
impl UnwindSafe for CallbackInfo
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
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