pub struct Resources {
pub cpu_slots: usize,
pub outer_workers: usize,
pub inner_threads: usize,
}Expand description
The CPU slots of a job: outer_workers * inner_threads <= cpu_slots <= 1024
(the guide’s section Eight CPU slots).
Fields§
§cpu_slots: usizeSlots the runner reserves for the whole attempt.
outer_workers: usizeTasks solved at the same time.
inner_threads: usizeNumerical threads of each task.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Resources
impl<'de> Deserialize<'de> for Resources
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 StructuralPartialEq for Resources
Auto Trait Implementations§
impl Forget for Resources
impl Freeze for Resources
impl Move for Resources
impl RefUnwindSafe for Resources
impl Send for Resources
impl Sync for Resources
impl Unpin for Resources
impl UnsafeUnpin for Resources
impl UnwindSafe for Resources
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