pub struct AsyncTask<T>(/* private fields */);Available on crate feature
async-task only.Expand description
A task wrapper that implements the Task trait.
This provides panic safety and proper error handling for tasks created
with the async-task crate.
Implementations§
Trait Implementations§
Source§impl<T> Task<T> for AsyncTask<T>
impl<T> Task<T> for AsyncTask<T>
Auto Trait Implementations§
impl<T> Freeze for AsyncTask<T>
impl<T> RefUnwindSafe for AsyncTask<T>
impl<T> Send for AsyncTask<T>where
T: Send,
impl<T> Sync for AsyncTask<T>
impl<T> Unpin for AsyncTask<T>
impl<T> UnwindSafe for AsyncTask<T>
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
Source§impl<F> FutureExt for F
impl<F> FutureExt for F
Source§impl<F> IntoFuture for Fwhere
F: Future,
impl<F> IntoFuture for Fwhere
F: Future,
Source§type IntoFuture = F
type IntoFuture = F
Which kind of future are we turning this into?
Source§fn into_future(self) -> <F as IntoFuture>::IntoFuture
fn into_future(self) -> <F as IntoFuture>::IntoFuture
Creates a future from a value. Read more