pub struct JobHandle {
pub id: u64,
pub cancel: Arc<AtomicBool>,
}Expand description
A running job, held by the work doing it.
Fields§
§id: u64The job’s id.
cancel: Arc<AtomicBool>Set when someone asked it to stop.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Forget for JobHandle
impl Freeze for JobHandle
impl Move for JobHandle
impl RefUnwindSafe for JobHandle
impl Send for JobHandle
impl Sync for JobHandle
impl Unpin for JobHandle
impl UnsafeUnpin for JobHandlewhere
*const ArcInner<Atomic<bool>> is !null: UnsafeUnpin,
PhantomData<ArcInner<Atomic<bool>>>: UnsafeUnpin,
impl UnwindSafe for JobHandle
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