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>,
}
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>
Auto Trait Implementations
impl !RefUnwindSafe for NapiState
impl !Send for NapiState
impl !Sync for NapiState
impl Unpin for NapiState
impl !UnwindSafe for NapiState
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