pub struct ResourceConstraints {
pub max_vram_bytes: Option<u64>,
pub max_memory_bytes: Option<u64>,
pub must_run: bool,
}Expand description
Hard resource constraints the DCC imposes on an Agent during negotiation.
These represent non-negotiable limits that any proposed strategy must respect.
Fields§
§max_vram_bytes: Option<u64>Maximum VRAM usage allowed, in bytes. None means unconstrained.
max_memory_bytes: Option<u64>Maximum system memory allowed, in bytes. None means unconstrained.
must_run: boolIf true, this agent is critical and must always execute (e.g. physics in Simulation).
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
Source§impl Default for ResourceConstraints
impl Default for ResourceConstraints
Source§fn default() -> ResourceConstraints
fn default() -> ResourceConstraints
Returns the “default value” for a type. Read more
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