#[repr(C)]
pub struct Env {
pub isolate_ptr: *mut OwnedIsolate,
pub open_handle_scopes: usize,
pub shared: *mut EnvShared,
pub async_work_sender: UnboundedSender<PendingNapiAsyncWork>,
pub threadsafe_function_sender: UnboundedSender<ThreadSafeFunctionStatus>,
pub cleanup_hooks: Rc<RefCell<Vec<(extern "C" fn(_: *const c_void), *const c_void)>>>,
pub tsfn_ref_counters: Arc<Mutex<ThreadsafeFunctionRefCounters>>,
pub last_error: napi_extended_error_info,
pub global: NonNull<Value>,
/* private fields */
}
§open_handle_scopes: usize
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.