pub struct Disktest { /* private fields */ }
Expand description
Disktest core.
Implementations§
Source§impl Disktest
impl Disktest
Sourcepub fn new(
algorithm: DtStreamType,
seed: &[u8],
round_id: u64,
invert_pattern: bool,
nr_threads: usize,
quiet_level: DisktestQuiet,
abort: Option<Arc<AtomicBool>>,
) -> Disktest
pub fn new( algorithm: DtStreamType, seed: &[u8], round_id: u64, invert_pattern: bool, nr_threads: usize, quiet_level: DisktestQuiet, abort: Option<Arc<AtomicBool>>, ) -> Disktest
Create a new Disktest instance.
Parameters:
- algorithm: Select the algorithm to generate the random data stream
that is written to disk.
If unsure, use
Default::default()
. - seed: The seed for the random data stream generator.
- round_id: The disk test round. Every round gets a unique data stream.
If unsure, use
0
(first round). - invert_pattern: Bitwise invert the random data stream.
If unsure, use
false
(don’t invert). - nr_threads: The number of threads to spawn when generating the random data stream.
The special value
0
means: Use all CPUs available in the system. If unsure, use1
(One CPU). - quiet_level: The console verbosity of the Disktest code. See DisktestQuiet.
- abort: If this optional flag is set to
true
(e.g. by another thread) the Disktest process will abort as soon as possible. If unsure, useNone
.
Auto Trait Implementations§
impl Freeze for Disktest
impl !RefUnwindSafe for Disktest
impl !Send for Disktest
impl !Sync for Disktest
impl Unpin for Disktest
impl !UnwindSafe for Disktest
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