pub struct MockHardware { /* private fields */ }Expand description
Configurable mock hardware.
Implementations§
Source§impl MockHardware
impl MockHardware
Sourcepub fn zen4_single_ccd() -> Self
pub fn zen4_single_ccd() -> Self
Zen 4 single-CCD desktop-like mock (8c/16t, 32 MiB L3).
Sourcepub fn zen5_dual_ccd() -> Self
pub fn zen5_dual_ccd() -> Self
Zen 5 dual-CCD desktop-like mock (16c/32t, 2×32 MiB L3).
Sourcepub fn unsupported_intel() -> Self
pub fn unsupported_intel() -> Self
Non-AMD vendor — must surface graceful unsupported status.
Sourcepub fn unsupported_old_amd() -> Self
pub fn unsupported_old_amd() -> Self
AMD vendor but outside Zen3/Zen4/Zen5 microarch support.
Trait Implementations§
Source§impl Clone for MockHardware
impl Clone for MockHardware
Source§fn clone(&self) -> MockHardware
fn clone(&self) -> MockHardware
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for MockHardware
impl Debug for MockHardware
Source§impl HardwareBackend for MockHardware
impl HardwareBackend for MockHardware
Source§fn discover(&self, knowledge: &KnowledgePack) -> Result<HardwareInfo>
fn discover(&self, knowledge: &KnowledgePack) -> Result<HardwareInfo>
Discover hardware.
Auto Trait Implementations§
impl Freeze for MockHardware
impl RefUnwindSafe for MockHardware
impl Send for MockHardware
impl Sync for MockHardware
impl Unpin for MockHardware
impl UnsafeUnpin for MockHardware
impl UnwindSafe for MockHardware
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