Struct napi_h::threadsafe_function::ThreadSafeCallContext
source · pub struct ThreadSafeCallContext<T: 'static> {
pub env: Env,
pub value: T,
}
Expand description
ThreadSafeFunction Context object
the value
is the value passed to call
method
Fields§
§env: Env
§value: T
Auto Trait Implementations§
impl<T> Freeze for ThreadSafeCallContext<T>where
T: Freeze,
impl<T> RefUnwindSafe for ThreadSafeCallContext<T>where
T: RefUnwindSafe,
impl<T> !Send for ThreadSafeCallContext<T>
impl<T> !Sync for ThreadSafeCallContext<T>
impl<T> Unpin for ThreadSafeCallContext<T>where
T: Unpin,
impl<T> UnwindSafe for ThreadSafeCallContext<T>where
T: UnwindSafe,
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