Struct napi_h::bindgen_prelude::AsyncTask
source · pub struct AsyncTask<T: Task> { /* private fields */ }
Implementations§
source§impl<T: Task> AsyncTask<T>
impl<T: Task> AsyncTask<T>
pub fn new(task: T) -> Self
pub fn with_signal(task: T, signal: AbortSignal) -> Self
pub fn with_optional_signal(task: T, signal: Option<AbortSignal>) -> Self
Trait Implementations§
source§impl<T: Task> ToNapiValue for AsyncTask<T>
impl<T: Task> ToNapiValue for AsyncTask<T>
source§unsafe fn to_napi_value(env: napi_env, val: Self) -> Result<napi_value>
unsafe fn to_napi_value(env: napi_env, val: Self) -> Result<napi_value>
Safety Read more
Auto Trait Implementations§
impl<T> Freeze for AsyncTask<T>where
T: Freeze,
impl<T> RefUnwindSafe for AsyncTask<T>where
T: RefUnwindSafe,
impl<T> !Send for AsyncTask<T>
impl<T> !Sync for AsyncTask<T>
impl<T> Unpin for AsyncTask<T>where
T: Unpin,
impl<T> UnwindSafe for AsyncTask<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