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

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

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 !=.

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more

Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Performs the conversion.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

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