pub enum LoadPattern {
Constant,
Ramp {
start_connections: usize,
end_connections: usize,
step_duration: Duration,
},
Spike {
base_load: usize,
spike_load: usize,
spike_duration: Duration,
recovery_duration: Duration,
},
Wave {
min_connections: usize,
max_connections: usize,
period: Duration,
},
Random {
min_connections: usize,
max_connections: usize,
},
}Expand description
Load pattern for traffic simulation.
Variants§
Constant
Constant load throughout the test.
Ramp
Linearly increasing/decreasing load.
Spike
Sudden spike in load.
Wave
Wave pattern (sinusoidal).
Random
Random fluctuations.
Trait Implementations§
Source§impl Clone for LoadPattern
impl Clone for LoadPattern
Source§fn clone(&self) -> LoadPattern
fn clone(&self) -> LoadPattern
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 LoadPattern
impl RefUnwindSafe for LoadPattern
impl Send for LoadPattern
impl Sync for LoadPattern
impl Unpin for LoadPattern
impl UnsafeUnpin for LoadPattern
impl UnwindSafe for LoadPattern
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