pub struct UpdateConfigBuilder { /* private fields */ }
Expand description
Builder for UpdateConfig
.
Implementations§
Source§impl UpdateConfigBuilder
impl UpdateConfigBuilder
CPU shares (relative weight vs. other containers).
Sourcepub fn memory<VALUE: Into<Option<i64>>>(&mut self, value: VALUE) -> &mut Self
pub fn memory<VALUE: Into<Option<i64>>>(&mut self, value: VALUE) -> &mut Self
Memory limit (in bytes).
Sourcepub fn nano_cpus<VALUE: Into<Option<i64>>>(&mut self, value: VALUE) -> &mut Self
pub fn nano_cpus<VALUE: Into<Option<i64>>>(&mut self, value: VALUE) -> &mut Self
CPU quota in units of 10-9 CPUs.
Sourcepub fn cgroup_parent<VALUE: Into<Option<String>>>(
&mut self,
value: VALUE,
) -> &mut Self
pub fn cgroup_parent<VALUE: Into<Option<String>>>( &mut self, value: VALUE, ) -> &mut Self
Parent cgroup.
Sourcepub fn blkio_weight<VALUE: Into<Option<u16>>>(
&mut self,
value: VALUE,
) -> &mut Self
pub fn blkio_weight<VALUE: Into<Option<u16>>>( &mut self, value: VALUE, ) -> &mut Self
Block IO weight (relative weight vs. other containers).
pub fn blkio_weight_device<VALUE: Into<Option<Vec<WeightDevice>>>>( &mut self, value: VALUE, ) -> &mut Self
pub fn blkio_device_read_bps<VALUE: Into<Option<Vec<ThrottleDevice>>>>( &mut self, value: VALUE, ) -> &mut Self
pub fn blkio_device_write_bps<VALUE: Into<Option<Vec<ThrottleDevice>>>>( &mut self, value: VALUE, ) -> &mut Self
pub fn blkio_device_read_iops<VALUE: Into<Option<Vec<ThrottleDevice>>>>( &mut self, value: VALUE, ) -> &mut Self
pub fn blkio_device_write_iops<VALUE: Into<Option<Vec<ThrottleDevice>>>>( &mut self, value: VALUE, ) -> &mut Self
Sourcepub fn cpu_period<VALUE: Into<Option<i64>>>(
&mut self,
value: VALUE,
) -> &mut Self
pub fn cpu_period<VALUE: Into<Option<i64>>>( &mut self, value: VALUE, ) -> &mut Self
CPU CFS (Completely Fair Scheduler) period.
Sourcepub fn cpu_quota<VALUE: Into<Option<i64>>>(&mut self, value: VALUE) -> &mut Self
pub fn cpu_quota<VALUE: Into<Option<i64>>>(&mut self, value: VALUE) -> &mut Self
CPU CFS (Completely Fair Scheduler) quota.
Sourcepub fn cpu_realtime_period<VALUE: Into<Option<i64>>>(
&mut self,
value: VALUE,
) -> &mut Self
pub fn cpu_realtime_period<VALUE: Into<Option<i64>>>( &mut self, value: VALUE, ) -> &mut Self
CPU real-time period.
Sourcepub fn cpu_realtime_runtime<VALUE: Into<Option<i64>>>(
&mut self,
value: VALUE,
) -> &mut Self
pub fn cpu_realtime_runtime<VALUE: Into<Option<i64>>>( &mut self, value: VALUE, ) -> &mut Self
CPU real-time runtime.
Sourcepub fn cpuset_cpus<VALUE: Into<Option<String>>>(
&mut self,
value: VALUE,
) -> &mut Self
pub fn cpuset_cpus<VALUE: Into<Option<String>>>( &mut self, value: VALUE, ) -> &mut Self
CpusetCpus 0-2, 0,1.
Sourcepub fn cpuset_mems<VALUE: Into<Option<String>>>(
&mut self,
value: VALUE,
) -> &mut Self
pub fn cpuset_mems<VALUE: Into<Option<String>>>( &mut self, value: VALUE, ) -> &mut Self
CpusetMems 0-2, 0,1.
Sourcepub fn devices<VALUE: Into<Option<Vec<DeviceMapping>>>>(
&mut self,
value: VALUE,
) -> &mut Self
pub fn devices<VALUE: Into<Option<Vec<DeviceMapping>>>>( &mut self, value: VALUE, ) -> &mut Self
List of devices to map inside the container.
Sourcepub fn device_cgroup_rules<VALUE: Into<Option<Vec<String>>>>(
&mut self,
value: VALUE,
) -> &mut Self
pub fn device_cgroup_rules<VALUE: Into<Option<Vec<String>>>>( &mut self, value: VALUE, ) -> &mut Self
List of rule to be added to the device cgroup.
Sourcepub fn device_requests<VALUE: Into<Option<Vec<DeviceRequest>>>>(
&mut self,
value: VALUE,
) -> &mut Self
pub fn device_requests<VALUE: Into<Option<Vec<DeviceRequest>>>>( &mut self, value: VALUE, ) -> &mut Self
List of device requests for device drivers.
Sourcepub fn kernel_memory<VALUE: Into<Option<i64>>>(
&mut self,
value: VALUE,
) -> &mut Self
pub fn kernel_memory<VALUE: Into<Option<i64>>>( &mut self, value: VALUE, ) -> &mut Self
Kernel memory limit (in bytes).
Sourcepub fn kernel_memory_tcp<VALUE: Into<Option<i64>>>(
&mut self,
value: VALUE,
) -> &mut Self
pub fn kernel_memory_tcp<VALUE: Into<Option<i64>>>( &mut self, value: VALUE, ) -> &mut Self
Hard limit for kernel TCP buffer memory (in bytes).
Sourcepub fn memory_reservation<VALUE: Into<Option<i64>>>(
&mut self,
value: VALUE,
) -> &mut Self
pub fn memory_reservation<VALUE: Into<Option<i64>>>( &mut self, value: VALUE, ) -> &mut Self
Memory soft limit (in bytes).
Sourcepub fn memory_swap<VALUE: Into<Option<i64>>>(
&mut self,
value: VALUE,
) -> &mut Self
pub fn memory_swap<VALUE: Into<Option<i64>>>( &mut self, value: VALUE, ) -> &mut Self
Total memory usage (memory + swap); set -1
to enable unlimited swap.
Sourcepub fn memory_swappiness<VALUE: Into<Option<i64>>>(
&mut self,
value: VALUE,
) -> &mut Self
pub fn memory_swappiness<VALUE: Into<Option<i64>>>( &mut self, value: VALUE, ) -> &mut Self
Tuning container memory swappiness behaviour.
Sourcepub fn oom_kill_disable<VALUE: Into<Option<bool>>>(
&mut self,
value: VALUE,
) -> &mut Self
pub fn oom_kill_disable<VALUE: Into<Option<bool>>>( &mut self, value: VALUE, ) -> &mut Self
Whether to disable OOM Killer or not.
Sourcepub fn pids_limit<VALUE: Into<Option<i64>>>(
&mut self,
value: VALUE,
) -> &mut Self
pub fn pids_limit<VALUE: Into<Option<i64>>>( &mut self, value: VALUE, ) -> &mut Self
Setting PIDs limit for a container; Set 0
or -1
for unlimited, or null
to not change.
Sourcepub fn ulimits<VALUE: Into<Option<Vec<Ulimit>>>>(
&mut self,
value: VALUE,
) -> &mut Self
pub fn ulimits<VALUE: Into<Option<Vec<Ulimit>>>>( &mut self, value: VALUE, ) -> &mut Self
List of ulimits to be set in the container.
Sourcepub fn cpu_percent<VALUE: Into<Option<i64>>>(
&mut self,
value: VALUE,
) -> &mut Self
pub fn cpu_percent<VALUE: Into<Option<i64>>>( &mut self, value: VALUE, ) -> &mut Self
CPU percent.
Sourcepub fn io_maximum_iops<VALUE: Into<Option<u64>>>(
&mut self,
value: VALUE,
) -> &mut Self
pub fn io_maximum_iops<VALUE: Into<Option<u64>>>( &mut self, value: VALUE, ) -> &mut Self
Maximum IOps for the container system drive.
Sourcepub fn io_maximum_bandwidth<VALUE: Into<Option<u64>>>(
&mut self,
value: VALUE,
) -> &mut Self
pub fn io_maximum_bandwidth<VALUE: Into<Option<u64>>>( &mut self, value: VALUE, ) -> &mut Self
Maximum IO in bytes per second for the container system drive.
Sourcepub fn restart_policy<VALUE: Into<Option<RestartPolicy>>>(
&mut self,
value: VALUE,
) -> &mut Self
pub fn restart_policy<VALUE: Into<Option<RestartPolicy>>>( &mut self, value: VALUE, ) -> &mut Self
Restart policy to be used for the container.
Trait Implementations§
Source§impl Clone for UpdateConfigBuilder
impl Clone for UpdateConfigBuilder
Source§fn clone(&self) -> UpdateConfigBuilder
fn clone(&self) -> UpdateConfigBuilder
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more