Struct oci_spec::runtime::ExecCPUAffinity
source · pub struct ExecCPUAffinity { /* private fields */ }
Expand description
ExecCPUAffinity specifies CPU affinity used to execute the process. This setting is not applicable to the container’s init process.
Implementations§
source§impl ExecCPUAffinity
impl ExecCPUAffinity
sourcepub fn cpu_affinity_initial(&self) -> &Option<String>
pub fn cpu_affinity_initial(&self) -> &Option<String>
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(&self) -> &Option<String>
pub fn cpu_affinity_final(&self) -> &Option<String>
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,
the container’s default CPU affinity, as defined by cpu.cpus property, is used.
source§impl ExecCPUAffinity
impl ExecCPUAffinity
sourcepub fn set_cpu_affinity_initial(&mut self, val: Option<String>) -> &mut Self
pub fn set_cpu_affinity_initial(&mut self, val: Option<String>) -> &mut 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 set_cpu_affinity_final(&mut self, val: Option<String>) -> &mut Self
pub fn set_cpu_affinity_final(&mut self, val: Option<String>) -> &mut 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,
the container’s default CPU affinity, as defined by cpu.cpus property, is used.
Trait Implementations§
source§impl Clone for ExecCPUAffinity
impl Clone for ExecCPUAffinity
source§fn clone(&self) -> ExecCPUAffinity
fn clone(&self) -> ExecCPUAffinity
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for ExecCPUAffinity
impl Debug for ExecCPUAffinity
source§impl Default for ExecCPUAffinity
impl Default for ExecCPUAffinity
source§fn default() -> ExecCPUAffinity
fn default() -> ExecCPUAffinity
source§impl<'de> Deserialize<'de> for ExecCPUAffinity
impl<'de> Deserialize<'de> for ExecCPUAffinity
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>,
source§impl PartialEq for ExecCPUAffinity
impl PartialEq for ExecCPUAffinity
source§fn eq(&self, other: &ExecCPUAffinity) -> bool
fn eq(&self, other: &ExecCPUAffinity) -> bool
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for ExecCPUAffinity
impl Serialize for ExecCPUAffinity
impl Eq for ExecCPUAffinity
impl StructuralPartialEq for ExecCPUAffinity
Auto Trait Implementations§
impl Freeze for ExecCPUAffinity
impl RefUnwindSafe for ExecCPUAffinity
impl Send for ExecCPUAffinity
impl Sync for ExecCPUAffinity
impl Unpin for ExecCPUAffinity
impl UnwindSafe for ExecCPUAffinity
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)