Struct deno_napi::EnvShared

source ·
#[repr(C)]
pub struct EnvShared { pub instance_data: *mut c_void, pub data_finalize: Option<napi_finalize>, pub data_finalize_hint: *mut c_void, pub napi_wrap: Global<Private>, pub finalize: Option<napi_finalize>, pub finalize_hint: *mut c_void, pub filename: *const c_char, }
Expand description

Env that is shared between all contexts in same native module.

Fields§

§instance_data: *mut c_void§data_finalize: Option<napi_finalize>§data_finalize_hint: *mut c_void§napi_wrap: Global<Private>§finalize: Option<napi_finalize>§finalize_hint: *mut c_void§filename: *const c_char

Implementations§

Trait Implementations§

Formats the value using the given formatter. Read more

Auto Trait Implementations§

Blanket Implementations§

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.