pub struct TaskRequirements {
pub min_cpu_cores: u32,
pub min_memory_gb: f64,
pub min_gpu_memory_gb: Option<f64>,
pub required_node_type: Option<NodeType>,
pub min_networkbandwidth_mbps: f64,
pub min_storage_gb: f64,
pub geographic_constraints: Vec<String>,
pub compute_complexity: f64,
pub memory_intensity: f64,
pub io_requirements: f64,
}
Expand description
Requirements specification for distributed tasks
Fields§
§min_cpu_cores: u32
Minimum CPU cores required
min_memory_gb: f64
Minimum memory in GB
min_gpu_memory_gb: Option<f64>
Minimum GPU memory in GB (if GPU required)
required_node_type: Option<NodeType>
Required node type
min_networkbandwidth_mbps: f64
Network bandwidth requirements in Mbps
min_storage_gb: f64
Storage requirements in GB
geographic_constraints: Vec<String>
Geographic constraints
compute_complexity: f64
Compute complexity level
memory_intensity: f64
Memory intensity level
io_requirements: f64
I/O requirements
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
Source§impl Default for TaskRequirements
impl Default for TaskRequirements
Source§impl<'de> Deserialize<'de> for TaskRequirements
impl<'de> Deserialize<'de> for TaskRequirements
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
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