pub struct UpdateConfig {Show 32 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<i32>,
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<i32>,
pub io_maximum_i_ops: Option<i32>,
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 restart_policy: Option<Box<RestartPolicy>>,
pub ulimits: Option<Vec<Ulimit>>,
}
Expand description
UpdateConfig : Those attributes can be updated at runtime.
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<i32>
§blkio_weight_device: Option<Vec<WeightDevice>>
§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>
Applicable to all platforms
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<i32>
§io_maximum_i_ops: Option<i32>
§kernel_memory: Option<i64>
KernelMemory specifies the kernel memory limit (in bytes) for the container. Deprecated: kernel 5.4 deprecated kmem.limit_in_bytes.
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>
§restart_policy: Option<Box<RestartPolicy>>
§ulimits: Option<Vec<Ulimit>>
Implementations§
Source§impl UpdateConfig
impl UpdateConfig
Sourcepub fn new() -> UpdateConfig
pub fn new() -> UpdateConfig
Those attributes can be updated at runtime.
Trait Implementations§
Source§impl Clone for UpdateConfig
impl Clone for UpdateConfig
Source§fn clone(&self) -> UpdateConfig
fn clone(&self) -> UpdateConfig
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for UpdateConfig
impl Debug for UpdateConfig
Source§impl Default for UpdateConfig
impl Default for UpdateConfig
Source§fn default() -> UpdateConfig
fn default() -> UpdateConfig
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for UpdateConfig
impl<'de> Deserialize<'de> for UpdateConfig
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for UpdateConfig
impl PartialEq for UpdateConfig
Source§impl Serialize for UpdateConfig
impl Serialize for UpdateConfig
impl StructuralPartialEq for UpdateConfig
Auto Trait Implementations§
impl Freeze for UpdateConfig
impl RefUnwindSafe for UpdateConfig
impl Send for UpdateConfig
impl Sync for UpdateConfig
impl Unpin for UpdateConfig
impl UnwindSafe for UpdateConfig
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more