Struct oci_spec::runtime::LinuxCpuBuilder
source · pub struct LinuxCpuBuilder { /* private fields */ }
Expand description
Builder for LinuxCpu
.
Implementations§
source§impl LinuxCpuBuilder
impl LinuxCpuBuilder
CPU shares (relative weight (ratio) vs. other cgroups with cpu shares).
sourcepub fn quota<VALUE: Into<i64>>(self, value: VALUE) -> Self
pub fn quota<VALUE: Into<i64>>(self, value: VALUE) -> Self
CPU hardcap limit (in usecs). Allowed cpu time in a given period.
sourcepub fn idle<VALUE: Into<i64>>(self, value: VALUE) -> Self
pub fn idle<VALUE: Into<i64>>(self, value: VALUE) -> Self
Cgroups are configured with minimum weight, 0: default behavior, 1: SCHED_IDLE.
sourcepub fn burst<VALUE: Into<u64>>(self, value: VALUE) -> Self
pub fn burst<VALUE: Into<u64>>(self, value: VALUE) -> Self
Maximum amount of accumulated time in microseconds for which tasks in a cgroup can run additionally for burst during one period
sourcepub fn period<VALUE: Into<u64>>(self, value: VALUE) -> Self
pub fn period<VALUE: Into<u64>>(self, value: VALUE) -> Self
CPU period to be used for hardcapping (in usecs).
sourcepub fn realtime_runtime<VALUE: Into<i64>>(self, value: VALUE) -> Self
pub fn realtime_runtime<VALUE: Into<i64>>(self, value: VALUE) -> Self
How much time realtime scheduling may use (in usecs).
sourcepub fn realtime_period<VALUE: Into<u64>>(self, value: VALUE) -> Self
pub fn realtime_period<VALUE: Into<u64>>(self, value: VALUE) -> Self
CPU period to be used for realtime scheduling (in usecs).
sourcepub fn cpus<VALUE: Into<String>>(self, value: VALUE) -> Self
pub fn cpus<VALUE: Into<String>>(self, value: VALUE) -> Self
CPUs to use within the cpuset. Default is to use any CPU available.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for LinuxCpuBuilder
impl RefUnwindSafe for LinuxCpuBuilder
impl Send for LinuxCpuBuilder
impl Sync for LinuxCpuBuilder
impl Unpin for LinuxCpuBuilder
impl UnwindSafe for LinuxCpuBuilder
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