Struct napi::bindgen_prelude::AsyncTask
source · [−]pub struct AsyncTask<T: Task> { /* private fields */ }
Implementations
sourceimpl<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
sourceimpl<T: Task> ToNapiValue for AsyncTask<T>
impl<T: Task> ToNapiValue for AsyncTask<T>
sourceunsafe 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> 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
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
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