pub enum WorkloadCount {
Fixed(usize),
Random(Range<usize>),
}Expand description
Variants§
Fixed(usize)
Spawn exactly N instances every iteration.
Random(Range<usize>)
Spawn a random number of instances in [start..end) per iteration,
using the simulation RNG (deterministic per seed).
Trait Implementations§
Source§impl Clone for WorkloadCount
impl Clone for WorkloadCount
Source§fn clone(&self) -> WorkloadCount
fn clone(&self) -> WorkloadCount
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 moreAuto Trait Implementations§
impl Freeze for WorkloadCount
impl RefUnwindSafe for WorkloadCount
impl Send for WorkloadCount
impl Sync for WorkloadCount
impl Unpin for WorkloadCount
impl UnsafeUnpin for WorkloadCount
impl UnwindSafe for WorkloadCount
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