Struct atopology::Thread[][src]

pub struct Thread {
    pub id: GlobalThreadId,
    pub node_id: Option<NodeId>,
    pub package_id: PackageId,
    pub core_id: CoreId,
    pub thread_id: ThreadId,
    // some fields omitted
}

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]

impl PartialEq<Thread> for Thread[src]

impl PartialOrd<Thread> for Thread[src]

Auto Trait Implementations

impl Send for Thread

impl Sync for Thread

impl Unpin for Thread

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.