Struct deno_napi::Env

source ·
#[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>, /* private fields */ }

Fields§

§isolate_ptr: *mut OwnedIsolate§open_handle_scopes: usize§shared: *mut EnvShared§async_work_sender: UnboundedSender<PendingNapiAsyncWork>§threadsafe_function_sender: UnboundedSender<ThreadSafeFunctionStatus>

Implementations§

Trait Implementations§

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.