pub struct Job {
pub id: u64,
pub kind: String,
pub name: String,
pub progress: Option<f32>,
pub gpu: bool,
pub cancel: Arc<AtomicBool>,
}Expand description
A job running.
Fields§
§id: u64Its id (unique in this run of the app).
kind: StringWhat kind of work it is (model, export).
name: StringWhat it is doing now (“Finding cells: tile 3 of 12”).
progress: Option<f32>How far (0..1), when known.
gpu: boolWhether it drives the GPU (one such job at a time).
cancel: Arc<AtomicBool>Set to ask it to stop.
Trait Implementations§
Auto Trait Implementations§
impl Forget for Job
impl Freeze for Job
impl Move for Job
impl RefUnwindSafe for Job
impl Send for Job
impl Sync for Job
impl Unpin for Job
impl UnsafeUnpin for Jobwhere
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
*const ArcInner<Atomic<bool>> is !null: UnsafeUnpin,
PhantomData<ArcInner<Atomic<bool>>>: UnsafeUnpin,
impl UnwindSafe for Job
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