pub enum StressTarget {
All,
Cpu,
Gpu(Option<DeviceId>),
Memory,
Pcie,
Custom(Vec<StressTarget>),
}Expand description
Stress target
Variants§
All
Stress all resources
Cpu
Stress CPU only
Gpu(Option<DeviceId>)
Stress GPU (optionally specific device)
Memory
Stress memory (RAM + VRAM)
Pcie
Stress PCIe bandwidth
Custom(Vec<StressTarget>)
Custom combination
Implementations§
Source§impl StressTarget
impl StressTarget
Sourcepub fn parse(s: &str) -> Option<Self>
pub fn parse(s: &str) -> Option<Self>
Parse from string (e.g., “cpu”, “gpu”, “gpu:0”, “memory”, “pcie”)
Sourcepub fn includes_cpu(&self) -> bool
pub fn includes_cpu(&self) -> bool
Check if target includes CPU
Sourcepub fn includes_gpu(&self) -> bool
pub fn includes_gpu(&self) -> bool
Check if target includes GPU
Sourcepub fn includes_memory(&self) -> bool
pub fn includes_memory(&self) -> bool
Check if target includes memory
Sourcepub fn includes_pcie(&self) -> bool
pub fn includes_pcie(&self) -> bool
Check if target includes PCIe
Trait Implementations§
Source§impl Clone for StressTarget
impl Clone for StressTarget
Source§fn clone(&self) -> StressTarget
fn clone(&self) -> StressTarget
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 moreSource§impl Debug for StressTarget
impl Debug for StressTarget
Source§impl PartialEq for StressTarget
impl PartialEq for StressTarget
impl StructuralPartialEq for StressTarget
Auto Trait Implementations§
impl Freeze for StressTarget
impl RefUnwindSafe for StressTarget
impl Send for StressTarget
impl Sync for StressTarget
impl Unpin for StressTarget
impl UnsafeUnpin for StressTarget
impl UnwindSafe for StressTarget
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