pub struct TaskRequirements {
pub cpu_cores: Option<usize>,
pub memory: Option<u64>,
pub gpu_memory: Option<u64>,
pub gpu_devices: Vec<String>,
pub network_bandwidth: Option<u64>,
pub disk_space: Option<u64>,
pub execution_location: ExecutionLocation,
pub affinity: TaskAffinity,
}Expand description
Task resource requirements
Fields§
§cpu_cores: Option<usize>Required CPU cores
memory: Option<u64>Required memory in bytes
gpu_memory: Option<u64>Required GPU memory in bytes
gpu_devices: Vec<String>Required GPU devices
network_bandwidth: Option<u64>Required network bandwidth in bytes/sec
disk_space: Option<u64>Required disk space in bytes
execution_location: ExecutionLocationRequired execution environment
affinity: TaskAffinityTask affinity preferences
Trait Implementations§
Source§impl Clone for TaskRequirements
impl Clone for TaskRequirements
Source§fn clone(&self) -> TaskRequirements
fn clone(&self) -> TaskRequirements
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for TaskRequirements
impl Debug for TaskRequirements
Auto Trait Implementations§
impl Freeze for TaskRequirements
impl RefUnwindSafe for TaskRequirements
impl Send for TaskRequirements
impl Sync for TaskRequirements
impl Unpin for TaskRequirements
impl UnwindSafe for TaskRequirements
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<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more