pub struct ResourceBudget {
pub strategy_id: StrategyId,
pub time_limit: Duration,
pub memory_limit: Option<u64>,
pub extra_params: HashMap<String, String>,
}Expand description
An allocated resource budget issued by the DCC to an Agent.
Fields§
§strategy_id: StrategyIdThe strategy ID to be applied.
time_limit: DurationMaximum time allowed for execution.
memory_limit: Option<u64>Maximum VRAM budget in bytes, if constrained.
extra_params: HashMap<String, String>Additional ISA-specific parameters.
Trait Implementations§
Source§impl Clone for ResourceBudget
impl Clone for ResourceBudget
Source§fn clone(&self) -> ResourceBudget
fn clone(&self) -> ResourceBudget
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 moreAuto Trait Implementations§
impl Freeze for ResourceBudget
impl RefUnwindSafe for ResourceBudget
impl Send for ResourceBudget
impl Sync for ResourceBudget
impl Unpin for ResourceBudget
impl UnwindSafe for ResourceBudget
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