Struct UpdateConfigBuilder

Source
pub struct UpdateConfigBuilder { /* private fields */ }
Expand description

Builder for UpdateConfig.

Implementations§

Source§

impl UpdateConfigBuilder

Source

pub fn cpu_shares<VALUE: Into<Option<i64>>>( &mut self, value: VALUE, ) -> &mut Self

CPU shares (relative weight vs. other containers).

Source

pub fn memory<VALUE: Into<Option<i64>>>(&mut self, value: VALUE) -> &mut Self

Memory limit (in bytes).

Source

pub fn nano_cpus<VALUE: Into<Option<i64>>>(&mut self, value: VALUE) -> &mut Self

CPU quota in units of 10-9 CPUs.

Source

pub fn cgroup_parent<VALUE: Into<Option<String>>>( &mut self, value: VALUE, ) -> &mut Self

Parent cgroup.

Source

pub fn blkio_weight<VALUE: Into<Option<u16>>>( &mut self, value: VALUE, ) -> &mut Self

Block IO weight (relative weight vs. other containers).

Source

pub fn blkio_weight_device<VALUE: Into<Option<Vec<WeightDevice>>>>( &mut self, value: VALUE, ) -> &mut Self

Source

pub fn blkio_device_read_bps<VALUE: Into<Option<Vec<ThrottleDevice>>>>( &mut self, value: VALUE, ) -> &mut Self

Source

pub fn blkio_device_write_bps<VALUE: Into<Option<Vec<ThrottleDevice>>>>( &mut self, value: VALUE, ) -> &mut Self

Source

pub fn blkio_device_read_iops<VALUE: Into<Option<Vec<ThrottleDevice>>>>( &mut self, value: VALUE, ) -> &mut Self

Source

pub fn blkio_device_write_iops<VALUE: Into<Option<Vec<ThrottleDevice>>>>( &mut self, value: VALUE, ) -> &mut Self

Source

pub fn cpu_period<VALUE: Into<Option<i64>>>( &mut self, value: VALUE, ) -> &mut Self

CPU CFS (Completely Fair Scheduler) period.

Source

pub fn cpu_quota<VALUE: Into<Option<i64>>>(&mut self, value: VALUE) -> &mut Self

CPU CFS (Completely Fair Scheduler) quota.

Source

pub fn cpu_realtime_period<VALUE: Into<Option<i64>>>( &mut self, value: VALUE, ) -> &mut Self

CPU real-time period.

Source

pub fn cpu_realtime_runtime<VALUE: Into<Option<i64>>>( &mut self, value: VALUE, ) -> &mut Self

CPU real-time runtime.

Source

pub fn cpuset_cpus<VALUE: Into<Option<String>>>( &mut self, value: VALUE, ) -> &mut Self

CpusetCpus 0-2, 0,1.

Source

pub fn cpuset_mems<VALUE: Into<Option<String>>>( &mut self, value: VALUE, ) -> &mut Self

CpusetMems 0-2, 0,1.

Source

pub fn devices<VALUE: Into<Option<Vec<DeviceMapping>>>>( &mut self, value: VALUE, ) -> &mut Self

List of devices to map inside the container.

Source

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.

Source

pub fn device_requests<VALUE: Into<Option<Vec<DeviceRequest>>>>( &mut self, value: VALUE, ) -> &mut Self

List of device requests for device drivers.

Source

pub fn kernel_memory<VALUE: Into<Option<i64>>>( &mut self, value: VALUE, ) -> &mut Self

Kernel memory limit (in bytes).

Source

pub fn kernel_memory_tcp<VALUE: Into<Option<i64>>>( &mut self, value: VALUE, ) -> &mut Self

Hard limit for kernel TCP buffer memory (in bytes).

Source

pub fn memory_reservation<VALUE: Into<Option<i64>>>( &mut self, value: VALUE, ) -> &mut Self

Memory soft limit (in bytes).

Source

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.

Source

pub fn memory_swappiness<VALUE: Into<Option<i64>>>( &mut self, value: VALUE, ) -> &mut Self

Tuning container memory swappiness behaviour.

Source

pub fn oom_kill_disable<VALUE: Into<Option<bool>>>( &mut self, value: VALUE, ) -> &mut Self

Whether to disable OOM Killer or not.

Source

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.

Source

pub fn ulimits<VALUE: Into<Option<Vec<Ulimit>>>>( &mut self, value: VALUE, ) -> &mut Self

List of ulimits to be set in the container.

Source

pub fn cpu_count<VALUE: Into<Option<i64>>>(&mut self, value: VALUE) -> &mut Self

CPU count.

Source

pub fn cpu_percent<VALUE: Into<Option<i64>>>( &mut self, value: VALUE, ) -> &mut Self

CPU percent.

Source

pub fn io_maximum_iops<VALUE: Into<Option<u64>>>( &mut self, value: VALUE, ) -> &mut Self

Maximum IOps for the container system drive.

Source

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.

Source

pub fn restart_policy<VALUE: Into<Option<RestartPolicy>>>( &mut self, value: VALUE, ) -> &mut Self

Restart policy to be used for the container.

Source

pub fn build(&self) -> Result<UpdateConfig, String>

Builds a new UpdateConfig.

§Errors

If a required field has not been initialized.

Trait Implementations§

Source§

impl Clone for UpdateConfigBuilder

Source§

fn clone(&self) -> UpdateConfigBuilder

Returns a copy of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Default for UpdateConfigBuilder

Source§

fn default() -> UpdateConfigBuilder

Returns the “default value” for a type. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self>

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

fn in_current_span(self) -> Instrumented<Self>

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

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self>

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

fn in_current_span(self) -> Instrumented<Self>

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

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

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

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

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

fn clone_into(&self, target: &mut T)

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

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more