pub struct Resources {
Show 31 fields pub blkio_device_read_bps: Option<Vec<ThrottleDevice, Global>>, pub blkio_device_read_i_ops: Option<Vec<ThrottleDevice, Global>>, pub blkio_device_write_bps: Option<Vec<ThrottleDevice, Global>>, pub blkio_device_write_i_ops: Option<Vec<ThrottleDevice, Global>>, pub blkio_weight: Option<u16>, pub blkio_weight_device: Option<Vec<WeightDevice, Global>>, 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, Global>>, pub device_requests: Option<Vec<DeviceRequest, Global>>, pub devices: Option<Vec<DeviceMapping, Global>>, pub io_maximum_bandwidth: Option<u64>, pub io_maximum_i_ops: Option<u64>, 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, Global>>,
}
Expand description

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

Fields§

§blkio_device_read_bps: Option<Vec<ThrottleDevice, Global>>§blkio_device_read_i_ops: Option<Vec<ThrottleDevice, Global>>§blkio_device_write_bps: Option<Vec<ThrottleDevice, Global>>§blkio_device_write_i_ops: Option<Vec<ThrottleDevice, Global>>§blkio_weight: Option<u16>§blkio_weight_device: Option<Vec<WeightDevice, Global>>§cgroup_parent: Option<String>

Applicable to UNIX platforms

§cpu_count: Option<i64>

Applicable to Windows

§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>

Applicable to all platforms

§cpuset_cpus: Option<String>§cpuset_mems: Option<String>§device_cgroup_rules: Option<Vec<String, Global>>§device_requests: Option<Vec<DeviceRequest, Global>>§devices: Option<Vec<DeviceMapping, Global>>§io_maximum_bandwidth: Option<u64>§io_maximum_i_ops: Option<u64>§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, Global>>

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 !=. The default implementation is almost always sufficient, and should not be overridden without very good reason. Read more
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

Returns the argument unchanged.

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

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
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