pub struct ProcessorId {
pub group: u32,
pub index: u32,
}Expand description
An OS processor identity. Linux uses group zero and the kernel CPU index.
Fields§
§group: u32Windows processor group; Linux reports zero.
index: u32Processor index inside the group.
Trait Implementations§
Source§impl Clone for ProcessorId
impl Clone for ProcessorId
impl Copy for ProcessorId
Source§impl Debug for ProcessorId
impl Debug for ProcessorId
impl Eq for ProcessorId
Source§impl Ord for ProcessorId
impl Ord for ProcessorId
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialEq for ProcessorId
impl PartialEq for ProcessorId
Source§impl PartialOrd for ProcessorId
impl PartialOrd for ProcessorId
impl StructuralPartialEq for ProcessorId
Auto Trait Implementations§
impl Freeze for ProcessorId
impl RefUnwindSafe for ProcessorId
impl Send for ProcessorId
impl Sync for ProcessorId
impl Unpin for ProcessorId
impl UnsafeUnpin for ProcessorId
impl UnwindSafe for ProcessorId
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