pub struct TokioTask<T> { /* private fields */ }Available on crate feature
tokio only.Expand description
Task wrapper for Tokio’s JoinHandle that implements the Task trait.
This provides panic safety and proper error handling for tasks spawned
with Tokio’s spawn function.
Trait Implementations§
Source§impl<T: Send + 'static> Task<T> for TokioTask<T>
impl<T: Send + 'static> Task<T> for TokioTask<T>
Auto Trait Implementations§
impl<T> Freeze for TokioTask<T>where
JoinHandle<T>: Freeze,
impl<T> RefUnwindSafe for TokioTask<T>where
JoinHandle<T>: RefUnwindSafe,
impl<T> Send for TokioTask<T>where
JoinHandle<T>: Send,
impl<T> Sync for TokioTask<T>where
JoinHandle<T>: Sync,
impl<T> Unpin for TokioTask<T>where
JoinHandle<T>: Unpin,
impl<T> UnsafeUnpin for TokioTask<T>where
JoinHandle<T>: UnsafeUnpin,
impl<T> UnwindSafe for TokioTask<T>where
JoinHandle<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
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