Enum hwlocality::cpu::binding::CpuBoundObject
source · pub enum CpuBoundObject {
ProcessOrThread(ProcessId),
Thread(ThreadId),
ThisProgram,
}
Expand description
Object that is being bound to particular CPUs
Variants§
ProcessOrThread(ProcessId)
A process, identified by its PID, or possibly a thread on Linux
Thread(ThreadId)
A thread, identified by its TID
ThisProgram
The currently running program
Trait Implementations§
source§impl Arbitrary for CpuBoundObject
Available on crate feature proptest
only.
impl Arbitrary for CpuBoundObject
Available on crate feature
proptest
only.§type Parameters = ()
type Parameters = ()
The type of parameters that
arbitrary_with
accepts for configuration
of the generated Strategy
. Parameters must implement Default
.§type Strategy = TupleUnion<((u32, Arc<Just<CpuBoundObject>>), (u32, Arc<Map<<u64 as Arbitrary>::Strategy, fn(_: u64) -> CpuBoundObject>>), (u32, Arc<Map<<u32 as Arbitrary>::Strategy, fn(_: u32) -> CpuBoundObject>>))>
type Strategy = TupleUnion<((u32, Arc<Just<CpuBoundObject>>), (u32, Arc<Map<<u64 as Arbitrary>::Strategy, fn(_: u64) -> CpuBoundObject>>), (u32, Arc<Map<<u32 as Arbitrary>::Strategy, fn(_: u32) -> CpuBoundObject>>))>
The type of
Strategy
used to generate values of type Self
.source§fn arbitrary_with(_args: Self::Parameters) -> Self::Strategy
fn arbitrary_with(_args: Self::Parameters) -> Self::Strategy
source§impl Clone for CpuBoundObject
impl Clone for CpuBoundObject
source§fn clone(&self) -> CpuBoundObject
fn clone(&self) -> CpuBoundObject
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for CpuBoundObject
impl Debug for CpuBoundObject
source§impl Display for CpuBoundObject
impl Display for CpuBoundObject
source§impl From<CpuBoundObject> for CpuBindingError
impl From<CpuBoundObject> for CpuBindingError
source§fn from(value: CpuBoundObject) -> Self
fn from(value: CpuBoundObject) -> Self
Converts to this type from the input type.
source§impl Hash for CpuBoundObject
impl Hash for CpuBoundObject
source§impl PartialEq for CpuBoundObject
impl PartialEq for CpuBoundObject
source§fn eq(&self, other: &CpuBoundObject) -> bool
fn eq(&self, other: &CpuBoundObject) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for CpuBoundObject
impl Eq for CpuBoundObject
impl StructuralPartialEq for CpuBoundObject
Auto Trait Implementations§
impl Freeze for CpuBoundObject
impl RefUnwindSafe for CpuBoundObject
impl Send for CpuBoundObject
impl Sync for CpuBoundObject
impl Unpin for CpuBoundObject
impl UnwindSafe for CpuBoundObject
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