pub struct SocketInfo {
pub id: usize,
pub cores: Vec<CoreInfo>,
pub l3_cache: Option<CacheInfo>,
}Expand description
Represents information about a single CPU socket (physical CPU package).
A CPU socket is a physical connector on a motherboard that houses a CPU. Multi-socket systems have more than one physical CPU. This structure details the cores contained within a socket and any caches shared at the socket level (e.g., L3 cache).
Fields§
§id: usizeA unique identifier for this CPU socket.
For single-socket systems, this will typically be 0.
cores: Vec<CoreInfo>A list of all physical cores belonging to this socket.
Each CoreInfo in this vector provides detailed information about a specific core.
l3_cache: Option<CacheInfo>Information about the L3 cache, if present and detected for this socket.
The L3 cache (Last-Level Cache or LLC in many contexts) is typically shared among all cores within the same physical CPU socket.
Trait Implementations§
Source§impl Clone for SocketInfo
impl Clone for SocketInfo
Source§fn clone(&self) -> SocketInfo
fn clone(&self) -> SocketInfo
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 moreAuto Trait Implementations§
impl Freeze for SocketInfo
impl RefUnwindSafe for SocketInfo
impl Send for SocketInfo
impl Sync for SocketInfo
impl Unpin for SocketInfo
impl UnwindSafe for SocketInfo
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