pub struct Task<R> {
pub id: TaskID,
pub finished: bool,
pub result: Option<R>,
}Fields§
§id: TaskID§finished: bool§result: Option<R>Trait Implementations§
Auto Trait Implementations§
impl<R> Freeze for Task<R>where
R: Freeze,
impl<R> RefUnwindSafe for Task<R>where
R: RefUnwindSafe,
impl<R> Send for Task<R>where
R: Send,
impl<R> Sync for Task<R>where
R: Sync,
impl<R> Unpin for Task<R>where
R: Unpin,
impl<R> UnwindSafe for Task<R>where
R: 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