#[repr(u32)]pub enum TaskState {
Empty = 0,
Ready = 1,
Running = 2,
Done = 3,
Paused = 4,
Yielded = 5,
Requeued = 6,
Faulted = 7,
}Expand description
GPU-visible lifecycle state for one continuation task slot.
Variants§
Empty = 0
Slot is empty and may be reused.
Ready = 1
Slot is published and may be claimed by a GPU worker.
Running = 2
Slot is currently owned by a GPU worker.
Done = 3
Slot finished successfully.
Paused = 4
Slot is paused until an external device-visible condition is met.
Yielded = 5
Slot yielded voluntarily and should remain schedulable.
Requeued = 6
Slot should be placed back into its priority partition.
Faulted = 7
Slot faulted and must not be executed again without repair.
Implementations§
Trait Implementations§
impl Copy for TaskState
impl Eq for TaskState
impl StructuralPartialEq for TaskState
Auto Trait Implementations§
impl Freeze for TaskState
impl RefUnwindSafe for TaskState
impl Send for TaskState
impl Sync for TaskState
impl Unpin for TaskState
impl UnsafeUnpin for TaskState
impl UnwindSafe for TaskState
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<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.