pub struct ResourceConstraints {
pub max_cpu_cores: Option<usize>,
pub max_memory: Option<u64>,
pub max_gpu_devices: Option<usize>,
pub max_concurrent_tasks: Option<usize>,
pub max_task_time: Option<Duration>,
pub memory_limit_per_task: Option<u64>,
pub cpu_quota_per_task: Option<f64>,
pub gpu_memory_per_task: Option<u64>,
pub network_bandwidth_per_task: Option<u64>,
pub max_queue_depth: Option<usize>,
pub priority_levels: Option<u8>,
pub isolation_mode: ResourceIsolationMode,
}Expand description
Resource allocation constraints and limits
Fields§
§max_cpu_cores: Option<usize>§max_memory: Option<u64>§max_gpu_devices: Option<usize>§max_concurrent_tasks: Option<usize>§max_task_time: Option<Duration>§memory_limit_per_task: Option<u64>§cpu_quota_per_task: Option<f64>§gpu_memory_per_task: Option<u64>§network_bandwidth_per_task: Option<u64>§max_queue_depth: Option<usize>§priority_levels: Option<u8>§isolation_mode: ResourceIsolationModeImplementations§
Trait Implementations§
Source§impl Clone for ResourceConstraints
impl Clone for ResourceConstraints
Source§fn clone(&self) -> ResourceConstraints
fn clone(&self) -> ResourceConstraints
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 ResourceConstraints
impl Debug for ResourceConstraints
Auto Trait Implementations§
impl Freeze for ResourceConstraints
impl RefUnwindSafe for ResourceConstraints
impl Send for ResourceConstraints
impl Sync for ResourceConstraints
impl Unpin for ResourceConstraints
impl UnwindSafe for ResourceConstraints
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