Struct atopology::Thread [−][src]
Represents an SMT thread in the system.
Fields
id: GlobalThreadId
ID the thread, global within a system.
node_id: Option<NodeId>
ID of the NUMA node (system global)
package_id: PackageId
ID of the package (system global)
core_id: CoreId
ID of the core
thread_id: ThreadId
ID of the thread (usually between 0..1)
Implementations
impl Thread
[src]
pub fn apic_id(&self) -> ApicId
[src]
APIC ID (unique in the system).
pub fn siblings(&'static self) -> impl Iterator<Item = &'static Thread>
[src]
All neighboring threads (on the same core)
pub fn core(&'static self) -> &'static Core
[src]
Return the Core
this thread belongs to.
pub fn package(&'static self) -> &'static Package
[src]
Return the Package
this thread belongs to.
pub fn node(&'static self) -> Option<&'static Node>
[src]
Return the NUMA node this thread belongs to.
Trait Implementations
impl Debug for Thread
[src]
impl Eq for Thread
[src]
impl Ord for Thread
[src]
fn cmp(&self, other: &Thread) -> Ordering
[src]
#[must_use]pub fn max(self, other: Self) -> Self
1.21.0[src]
#[must_use]pub fn min(self, other: Self) -> Self
1.21.0[src]
#[must_use]pub fn clamp(self, min: Self, max: Self) -> Self
1.50.0[src]
impl PartialEq<Thread> for Thread
[src]
impl PartialOrd<Thread> for Thread
[src]
Auto Trait Implementations
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,