pub struct PinnedAffinity { /* private fields */ }Expand description
A PinnedAffinity represents a specific binding to a processor and memory region.
Implementations§
Source§impl PinnedAffinity
impl PinnedAffinity
Sourcepub const fn processor_index(self) -> usize
pub const fn processor_index(self) -> usize
Returns the processor index of this affinity.
Sourcepub const fn memory_region_index(self) -> usize
pub const fn memory_region_index(self) -> usize
Returns the memory region index of this affinity.
Sourcepub const fn processor_count(self) -> usize
pub const fn processor_count(self) -> usize
Returns the processor count of this affinity.
Sourcepub const fn memory_region_count(self) -> usize
pub const fn memory_region_count(self) -> usize
Returns the number of memory regions of this affinity.
Trait Implementations§
Source§impl Clone for PinnedAffinity
impl Clone for PinnedAffinity
Source§fn clone(&self) -> PinnedAffinity
fn clone(&self) -> PinnedAffinity
Returns a duplicate 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 PinnedAffinity
impl Debug for PinnedAffinity
Source§impl From<PinnedAffinity> for MemoryAffinity
impl From<PinnedAffinity> for MemoryAffinity
Source§fn from(pinned: PinnedAffinity) -> Self
fn from(pinned: PinnedAffinity) -> Self
Converts to this type from the input type.
Source§impl Hash for PinnedAffinity
impl Hash for PinnedAffinity
Source§impl PartialEq for PinnedAffinity
impl PartialEq for PinnedAffinity
impl Copy for PinnedAffinity
impl Eq for PinnedAffinity
impl StructuralPartialEq for PinnedAffinity
Auto Trait Implementations§
impl Freeze for PinnedAffinity
impl RefUnwindSafe for PinnedAffinity
impl Send for PinnedAffinity
impl Sync for PinnedAffinity
impl Unpin for PinnedAffinity
impl UnwindSafe for PinnedAffinity
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