pub struct ResourcePool {
pub total_cpu_cores: f64,
pub total_memory_mb: u64,
pub total_gpus: u32,
pub total_disk_mb: u64,
pub custom_resources: HashMap<String, f64>,
}Expand description
Resource pool for parallel execution.
Fields§
§total_cpu_cores: f64Total CPU cores available.
total_memory_mb: u64Total memory in MB.
total_gpus: u32Number of GPUs available.
total_disk_mb: u64Total disk space in MB.
custom_resources: HashMap<String, f64>Custom resources.
Trait Implementations§
Source§impl Clone for ResourcePool
impl Clone for ResourcePool
Source§fn clone(&self) -> ResourcePool
fn clone(&self) -> ResourcePool
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 ResourcePool
impl Debug for ResourcePool
Source§impl Default for ResourcePool
impl Default for ResourcePool
Source§impl<'de> Deserialize<'de> for ResourcePool
impl<'de> Deserialize<'de> for ResourcePool
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
Source§impl From<ResourcePool> for AvailableResources
impl From<ResourcePool> for AvailableResources
Source§fn from(pool: ResourcePool) -> Self
fn from(pool: ResourcePool) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for ResourcePool
impl RefUnwindSafe for ResourcePool
impl Send for ResourcePool
impl Sync for ResourcePool
impl Unpin for ResourcePool
impl UnsafeUnpin for ResourcePool
impl UnwindSafe for ResourcePool
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