#[non_exhaustive]pub enum JobClass {
Light,
CpuHeavy,
GpuHeavy,
Mixed,
}Expand description
Named job profiles. Their values come from the [classes] section of the config.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Light
Short jobs that barely load the machine.
CpuHeavy
Compiles, test suites, and other CPU-bound work.
GpuHeavy
Training, rendering, games, and other GPU-bound work.
Mixed
Jobs that load both the CPU and the GPU.
Implementations§
Trait Implementations§
impl Copy for JobClass
Source§impl<'de> Deserialize<'de> for JobClass
impl<'de> Deserialize<'de> for JobClass
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for JobClass
impl StructuralPartialEq for JobClass
Auto Trait Implementations§
impl Forget for JobClass
impl Freeze for JobClass
impl RefUnwindSafe for JobClass
impl Send for JobClass
impl Sync for JobClass
impl Unpin for JobClass
impl UnsafeUnpin for JobClass
impl UnwindSafe for JobClass
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