Struct deno_napi::NapiState

source ·
pub struct NapiState {
    pub pending_async_work: Vec<PendingNapiAsyncWork>,
    pub async_work_sender: UnboundedSender<PendingNapiAsyncWork>,
    pub async_work_receiver: UnboundedReceiver<PendingNapiAsyncWork>,
    pub active_threadsafe_functions: usize,
    pub threadsafe_function_receiver: UnboundedReceiver<ThreadSafeFunctionStatus>,
    pub threadsafe_function_sender: UnboundedSender<ThreadSafeFunctionStatus>,
    pub env_cleanup_hooks: Rc<RefCell<Vec<(extern "C" fn(_: *const c_void), *const c_void)>>>,
    pub tsfn_ref_counters: Rc<RefCell<ThreadsafeFunctionRefCounters>>,
}

Fields§

§pending_async_work: Vec<PendingNapiAsyncWork>§async_work_sender: UnboundedSender<PendingNapiAsyncWork>§async_work_receiver: UnboundedReceiver<PendingNapiAsyncWork>§active_threadsafe_functions: usize§threadsafe_function_receiver: UnboundedReceiver<ThreadSafeFunctionStatus>§threadsafe_function_sender: UnboundedSender<ThreadSafeFunctionStatus>§env_cleanup_hooks: Rc<RefCell<Vec<(extern "C" fn(_: *const c_void), *const c_void)>>>§tsfn_ref_counters: Rc<RefCell<ThreadsafeFunctionRefCounters>>

Trait Implementations§

Executes the destructor for this type. 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.