Struct atopology::Package[][src]

pub struct Package {
    pub id: PackageId,
    pub node_id: Option<NodeId>,
}

Represents a package/socket in the system.

Fields

id: PackageId

Package ID

node_id: Option<NodeId>

NUMA node

Implementations

impl Package[src]

pub fn siblings(&'static self) -> impl Iterator<Item = &'static Package>[src]

All packages of the machine.

pub fn threads(&'static self) -> impl Iterator<Item = &'static Thread>[src]

All threads of the package.

pub fn cores(&'static self) -> impl Iterator<Item = &'static Core>[src]

All cores of the package.

pub fn node(&'static self) -> Option<&'static Node>[src]

Return the NUMA node this core belongs to.

Trait Implementations

impl Debug for Package[src]

impl Eq for Package[src]

impl Ord for Package[src]

impl PartialEq<Package> for Package[src]

impl PartialOrd<Package> for Package[src]

impl StructuralEq for Package[src]

impl StructuralPartialEq for Package[src]

Auto Trait Implementations

impl Send for Package

impl Sync for Package

impl Unpin for Package

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.