[−][src]Struct dpdk_unix::scheduling::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]
fn from(hyper_threads: &BTreeSet<HyperThread>) -> CpuSet
[src]
Auto Trait Implementations
Blanket Implementations
impl<T, U> Into for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From for T
[src]
impl<T, U> TryFrom for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = !
🔬 This is a nightly-only experimental API. (
try_from
)The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T> Borrow for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T, U> TryInto for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
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.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> BorrowMut for T where
T: ?Sized,
[src]
T: ?Sized,