Skip to main content

CpusetOps

Trait CpusetOps 

Source
pub trait CpusetOps:
    Send
    + Sync
    + 'static {
    // Required methods
    fn cpuset_cpus(&self) -> Vec<u32>;
    fn set_cpuset_cpus(&self, cpus: Vec<u32>);
}

Required Methods§

Source

fn cpuset_cpus(&self) -> Vec<u32>

Returns the cpuset cpus of the cgroup.

Source

fn set_cpuset_cpus(&self, cpus: Vec<u32>)

Sets the cpuset cpus of the cgroup.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§