pub struct ContainerResourceConfig {
pub intel_rdt: Option<Box<LinuxIntelRdt>>,
pub oom_score_adj: Option<i64>,
pub r_limits: Option<Vec<PosixRlimit>>,
pub resource_limits: Option<Box<LinuxResources>>,
pub throttle_read_bps_device: Option<HashMap<String, LinuxThrottleDevice>>,
pub throttle_read_iops_device: Option<HashMap<String, LinuxThrottleDevice>>,
pub throttle_write_bps_device: Option<HashMap<String, LinuxThrottleDevice>>,
pub throttle_write_iops_device: Option<HashMap<String, LinuxThrottleDevice>>,
pub unified: Option<HashMap<String, String>>,
pub weight_device: Option<HashMap<String, LinuxWeightDevice>>,
}
Fields§
§intel_rdt: Option<Box<LinuxIntelRdt>>
§oom_score_adj: Option<i64>
OOMScoreAdj adjusts the score used by the OOM killer to determine processes to kill for the container’s process. Optional.
r_limits: Option<Vec<PosixRlimit>>
Rlimits are POSIX rlimits to apply to the container. Optional.
resource_limits: Option<Box<LinuxResources>>
§throttle_read_bps_device: Option<HashMap<String, LinuxThrottleDevice>>
IO read rate limit per cgroup per device, bytes per second
throttle_read_iops_device: Option<HashMap<String, LinuxThrottleDevice>>
IO read rate limit per cgroup per device, IO per second
throttle_write_bps_device: Option<HashMap<String, LinuxThrottleDevice>>
IO write rate limit per cgroup per device, bytes per second
throttle_write_iops_device: Option<HashMap<String, LinuxThrottleDevice>>
IO write rate limit per cgroup per device, IO per second
unified: Option<HashMap<String, String>>
CgroupConf are key-value options passed into the container runtime that are used to configure cgroup v2. Optional.
weight_device: Option<HashMap<String, LinuxWeightDevice>>
Weight per cgroup per device, can override BlkioWeight
Implementations§
Source§impl ContainerResourceConfig
impl ContainerResourceConfig
pub fn new() -> ContainerResourceConfig
Trait Implementations§
Source§impl Clone for ContainerResourceConfig
impl Clone for ContainerResourceConfig
Source§fn clone(&self) -> ContainerResourceConfig
fn clone(&self) -> ContainerResourceConfig
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 ContainerResourceConfig
impl Debug for ContainerResourceConfig
Source§impl Default for ContainerResourceConfig
impl Default for ContainerResourceConfig
Source§fn default() -> ContainerResourceConfig
fn default() -> ContainerResourceConfig
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ContainerResourceConfig
impl<'de> Deserialize<'de> for ContainerResourceConfig
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 PartialEq for ContainerResourceConfig
impl PartialEq for ContainerResourceConfig
Source§impl Serialize for ContainerResourceConfig
impl Serialize for ContainerResourceConfig
impl StructuralPartialEq for ContainerResourceConfig
Auto Trait Implementations§
impl Freeze for ContainerResourceConfig
impl RefUnwindSafe for ContainerResourceConfig
impl Send for ContainerResourceConfig
impl Sync for ContainerResourceConfig
impl Unpin for ContainerResourceConfig
impl UnwindSafe for ContainerResourceConfig
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