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