Struct podman_api::models::ContainerResourceConfig [−][src]
pub struct ContainerResourceConfig {
pub cpu_period: Option<i64>,
pub cpu_quota: Option<i64>,
pub oom_score_adj: Option<i64>,
pub r_limits: Option<Vec<PosixRlimit, Global>>,
pub resource_limits: Option<LinuxResources>,
pub throttle_read_bps_device: Option<HashMap<String, LinuxThrottleDevice, RandomState>>,
pub throttle_read_iops_device: Option<HashMap<String, LinuxThrottleDevice, RandomState>>,
pub throttle_write_bps_device: Option<HashMap<String, LinuxThrottleDevice, RandomState>>,
pub throttle_write_iops_device: Option<HashMap<String, LinuxThrottleDevice, RandomState>>,
pub unified: Option<HashMap<String, String, RandomState>>,
pub weight_device: Option<HashMap<String, LinuxWeightDevice, RandomState>>,
}
Fields
cpu_period: Option<i64>
CPU period of the cpuset, determined by –cpus
cpu_quota: Option<i64>
CPU quota of the cpuset, determined by –cpus
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, Global>>
Rlimits are POSIX rlimits to apply to the container. Optional.
resource_limits: Option<LinuxResources>
throttle_read_bps_device: Option<HashMap<String, LinuxThrottleDevice, RandomState>>
IO read rate limit per cgroup per device, bytes per second
throttle_read_iops_device: Option<HashMap<String, LinuxThrottleDevice, RandomState>>
IO read rate limit per cgroup per device, IO per second
throttle_write_bps_device: Option<HashMap<String, LinuxThrottleDevice, RandomState>>
IO write rate limit per cgroup per device, bytes per second
throttle_write_iops_device: Option<HashMap<String, LinuxThrottleDevice, RandomState>>
IO write rate limit per cgroup per device, IO per second
unified: Option<HashMap<String, String, RandomState>>
CgroupConf are key-value options passed into the container runtime that are used to configure cgroup v2. Optional.
weight_device: Option<HashMap<String, LinuxWeightDevice, RandomState>>
Weight per cgroup per device, can override BlkioWeight
Trait Implementations
pub fn deserialize<__D>(
__deserializer: __D
) -> Result<ContainerResourceConfig, <__D as Deserializer<'de>>::Error> where
__D: Deserializer<'de>,
pub fn deserialize<__D>(
__deserializer: __D
) -> Result<ContainerResourceConfig, <__D as Deserializer<'de>>::Error> where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
pub fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error> where
__S: Serializer,
pub fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error> where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
Auto Trait Implementations
impl RefUnwindSafe for ContainerResourceConfig
impl Send for ContainerResourceConfig
impl Sync for ContainerResourceConfig
impl Unpin for ContainerResourceConfig
impl UnwindSafe for ContainerResourceConfig
Blanket Implementations
Mutably borrows from an owned value. Read more
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more