pub struct MemtestRunnerArgs {
pub timeout: Duration,
pub mem_lock_mode: MemLockMode,
pub allow_working_set_resize: bool,
pub allow_multithread: bool,
pub allow_early_termination: bool,
}Expand description
A set of arguments that define the behavior of MemtestRunner
Fields§
§timeout: DurationHow long should MemtestRunner run the test suite before timing out
mem_lock_mode: MemLockModeWhether memory will be locked before testing and whether the requested memory size of testing can be reduced to accomodate memory locking If memory locking failed but is required, MemtestRunner returns with error
allow_working_set_resize: boolWhether the process working set can be resized to accomodate memory locking This argument is only meaningful for Windows
allow_multithread: boolWhether mulithreading is enabled
allow_early_termination: boolWhether MemtestRunner returns immediately if a test fails or continues until all tests are run
Trait Implementations§
Source§impl Debug for MemtestRunnerArgs
impl Debug for MemtestRunnerArgs
Source§impl<'de> Deserialize<'de> for MemtestRunnerArgs
impl<'de> Deserialize<'de> for MemtestRunnerArgs
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for MemtestRunnerArgs
impl RefUnwindSafe for MemtestRunnerArgs
impl Send for MemtestRunnerArgs
impl Sync for MemtestRunnerArgs
impl Unpin for MemtestRunnerArgs
impl UnwindSafe for MemtestRunnerArgs
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