pub struct ExecutionResourceUpdate {
pub memory_reservation: Option<u64>,
pub memory_swap: Option<i64>,
pub pids_limit: Option<u64>,
pub cpu_shares: Option<u64>,
pub cpu_quota: Option<i64>,
pub cpu_period: Option<u64>,
pub cpuset_cpus: Option<String>,
}Expand description
Partial live update for cgroup-backed workload controls.
Every None field preserves the currently persisted value. Provisioned
vCPU count, hard memory size, rlimits, and device policy are deliberately
absent because changing them requires a new execution generation.
Fields§
§memory_reservation: Option<u64>§memory_swap: Option<i64>§pids_limit: Option<u64>§cpu_quota: Option<i64>§cpu_period: Option<u64>§cpuset_cpus: Option<String>Implementations§
Source§impl ExecutionResourceUpdate
impl ExecutionResourceUpdate
Sourcepub fn validate(&self) -> ExecutionManagerResult<()>
pub fn validate(&self) -> ExecutionManagerResult<()>
Validate backend-independent value constraints before a durable claim.
Sourcepub fn apply_to(&self, limits: &mut ResourceLimits)
pub fn apply_to(&self, limits: &mut ResourceLimits)
Merge this partial request into a complete persisted limit snapshot.
Trait Implementations§
Source§impl Clone for ExecutionResourceUpdate
impl Clone for ExecutionResourceUpdate
Source§fn clone(&self) -> ExecutionResourceUpdate
fn clone(&self) -> ExecutionResourceUpdate
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 ExecutionResourceUpdate
impl Debug for ExecutionResourceUpdate
Source§impl Default for ExecutionResourceUpdate
impl Default for ExecutionResourceUpdate
Source§fn default() -> ExecutionResourceUpdate
fn default() -> ExecutionResourceUpdate
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ExecutionResourceUpdate
impl<'de> Deserialize<'de> for ExecutionResourceUpdate
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
impl Eq for ExecutionResourceUpdate
Source§impl PartialEq for ExecutionResourceUpdate
impl PartialEq for ExecutionResourceUpdate
Source§impl Serialize for ExecutionResourceUpdate
impl Serialize for ExecutionResourceUpdate
impl StructuralPartialEq for ExecutionResourceUpdate
Auto Trait Implementations§
impl Freeze for ExecutionResourceUpdate
impl RefUnwindSafe for ExecutionResourceUpdate
impl Send for ExecutionResourceUpdate
impl Sync for ExecutionResourceUpdate
impl Unpin for ExecutionResourceUpdate
impl UnsafeUnpin for ExecutionResourceUpdate
impl UnwindSafe for ExecutionResourceUpdate
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,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.