pub struct LocalTask<'a, T> { /* private fields */ }
Expand description
A task that can be run on the current thread.
Implementations§
Source§impl<'a, T> LocalTask<'a, T>where
T: 'a,
impl<'a, T> LocalTask<'a, T>where
T: 'a,
pub fn join_handle(&self) -> LocalTaskHandle<T>
Trait Implementations§
Auto Trait Implementations§
impl<'a, T> Freeze for LocalTask<'a, T>
impl<'a, T> !RefUnwindSafe for LocalTask<'a, T>
impl<'a, T> !Send for LocalTask<'a, T>
impl<'a, T> !Sync for LocalTask<'a, T>
impl<'a, T> Unpin for LocalTask<'a, T>
impl<'a, T> !UnwindSafe for LocalTask<'a, 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> 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