Struct podman_api_stubs::models::Resources[][src]

pub struct Resources {
Show 31 fields pub blkio_device_read_bps: Option<Vec<ThrottleDevice>>, pub blkio_device_read_i_ops: Option<Vec<ThrottleDevice>>, pub blkio_device_write_bps: Option<Vec<ThrottleDevice>>, pub blkio_device_write_i_ops: Option<Vec<ThrottleDevice>>, pub blkio_weight: Option<i64>, pub blkio_weight_device: Option<Vec<WeightDevice>>, pub cgroup_parent: Option<String>, pub cpu_count: Option<i64>, pub cpu_percent: Option<i64>, pub cpu_period: Option<i64>, pub cpu_quota: Option<i64>, pub cpu_realtime_period: Option<i64>, pub cpu_realtime_runtime: Option<i64>, pub cpu_shares: Option<i64>, pub cpuset_cpus: Option<String>, pub cpuset_mems: Option<String>, pub device_cgroup_rules: Option<Vec<String>>, pub device_requests: Option<Vec<DeviceRequest>>, pub devices: Option<Vec<DeviceMapping>>, pub io_maximum_bandwidth: Option<i64>, pub io_maximum_i_ops: Option<i64>, pub kernel_memory: Option<i64>, pub kernel_memory_tcp: Option<i64>, pub memory: Option<i64>, pub memory_reservation: Option<i64>, pub memory_swap: Option<i64>, pub memory_swappiness: Option<i64>, pub nano_cpus: Option<i64>, pub oom_kill_disable: Option<bool>, pub pids_limit: Option<i64>, pub ulimits: Option<Vec<Ulimit>>,
}
Expand description

Resources contains container’s resources (cgroups config, ulimits…)

Fields

blkio_device_read_bps: Option<Vec<ThrottleDevice>>blkio_device_read_i_ops: Option<Vec<ThrottleDevice>>blkio_device_write_bps: Option<Vec<ThrottleDevice>>blkio_device_write_i_ops: Option<Vec<ThrottleDevice>>blkio_weight: Option<i64>blkio_weight_device: Option<Vec<WeightDevice>>cgroup_parent: Option<String>cpu_count: Option<i64>cpu_percent: Option<i64>cpu_period: Option<i64>cpu_quota: Option<i64>cpu_realtime_period: Option<i64>cpu_realtime_runtime: Option<i64>cpu_shares: Option<i64>cpuset_cpus: Option<String>cpuset_mems: Option<String>device_cgroup_rules: Option<Vec<String>>device_requests: Option<Vec<DeviceRequest>>devices: Option<Vec<DeviceMapping>>io_maximum_bandwidth: Option<i64>io_maximum_i_ops: Option<i64>kernel_memory: Option<i64>kernel_memory_tcp: Option<i64>memory: Option<i64>memory_reservation: Option<i64>memory_swap: Option<i64>memory_swappiness: Option<i64>nano_cpus: Option<i64>oom_kill_disable: Option<bool>pids_limit: Option<i64>ulimits: Option<Vec<Ulimit>>

Implementations

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.

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.