pub struct CacheTopology {
pub caches: Vec<Cache>,
}
Expand description
A machine’s cache topology.
Fields§
§caches: Vec<Cache>
A list of caches.
Implementations§
Source§impl CacheTopology
impl CacheTopology
Sourcepub fn from_host() -> Result<Self, HostTopologyError>
pub fn from_host() -> Result<Self, HostTopologyError>
Returns the cache topology of the current machine.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for CacheTopology
impl RefUnwindSafe for CacheTopology
impl Send for CacheTopology
impl Sync for CacheTopology
impl Unpin for CacheTopology
impl UnwindSafe for CacheTopology
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