Struct oci_spec::runtime::ExecCPUAffinityBuilder
source · pub struct ExecCPUAffinityBuilder { /* private fields */ }
Expand description
Builder for ExecCPUAffinity
.
Implementations§
source§impl ExecCPUAffinityBuilder
impl ExecCPUAffinityBuilder
sourcepub fn cpu_affinity_initial<VALUE: Into<String>>(self, value: VALUE) -> Self
pub fn cpu_affinity_initial<VALUE: Into<String>>(self, value: VALUE) -> Self
cpu_affinity_initial is a list of CPUs a runtime parent process to be run on
initially, before the transition to container’s cgroup.
This is a a comma-separated list, with dashes to represent ranges.
For example, 0-3,7
represents CPUs 0,1,2,3, and 7.
sourcepub fn cpu_affinity_final<VALUE: Into<String>>(self, value: VALUE) -> Self
pub fn cpu_affinity_final<VALUE: Into<String>>(self, value: VALUE) -> Self
cpu_affinity_final is a list of CPUs the process will be run on after the transition
to container’s cgroup. The format is the same as for initial
. If omitted or empty,
runtime SHOULD NOT change process’ CPU affinity after the process is moved to
container’s cgroup, and the final affinity is determined by the Linux kernel.
sourcepub fn build(self) -> Result<ExecCPUAffinity, OciSpecError>
pub fn build(self) -> Result<ExecCPUAffinity, OciSpecError>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ExecCPUAffinityBuilder
impl RefUnwindSafe for ExecCPUAffinityBuilder
impl Send for ExecCPUAffinityBuilder
impl Sync for ExecCPUAffinityBuilder
impl Unpin for ExecCPUAffinityBuilder
impl UnwindSafe for ExecCPUAffinityBuilder
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