pub struct NapiState {
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: Arc<Mutex<ThreadsafeFunctionRefCounters>>,
}
Fields§
§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: Arc<Mutex<ThreadsafeFunctionRefCounters>>
Trait Implementations§
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§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more