[][src]Struct dpdk_unix::scheduling::CpuSet

pub struct CpuSet(_);

A CPU set wrapper.

Methods

impl CpuSet[src]

pub fn set_current_process_affinity(&self) -> Result<()>[src]

Set process affinity for current process.

pub fn set_process_affinity(&self, process_identifier: pid_t) -> Result<()>[src]

Set process affinity.

pub fn set_thread_affinity(&self, thread_identifier: pthread_t) -> Result<()>[src]

Set thread affinity.

pub fn set_current_thread_affinity(&self) -> Result<()>[src]

Set thread affinity for current thread.

pub fn set_hyper_thread(&mut self, hyper_thread: HyperThread)[src]

Set a hyper thread in the CPU set.

Trait Implementations

impl Default for CpuSet[src]

impl<'a> From<&'a BTreeSet<HyperThread>> for CpuSet[src]

Auto Trait Implementations

impl Send for CpuSet

impl Sync for CpuSet

Blanket Implementations

impl<T, U> Into for T where
    U: From<T>, 
[src]

impl<T> From for T[src]

impl<T, U> TryFrom for T where
    U: Into<T>, 
[src]

type Error = !

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

impl<T> Borrow for T where
    T: ?Sized
[src]

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> BorrowMut for T where
    T: ?Sized
[src]