pub struct SimulatorConfig {
pub initial_rps: f64,
pub rps_profile: Option<RpsProfile>,
pub bottlenecks: Vec<BottleneckConfig>,
pub max_latency_samples: usize,
pub max_latency_age_seconds: u64,
}Expand description
Simulator configuration
Fields§
§initial_rps: f64Initial RPS
rps_profile: Option<RpsProfile>RPS profile
bottlenecks: Vec<BottleneckConfig>Bottleneck configurations
max_latency_samples: usizeMaximum latency samples to keep
max_latency_age_seconds: u64Maximum age of latency samples (seconds)
Implementations§
Source§impl SimulatorConfig
impl SimulatorConfig
Sourcepub fn with_rps_profile(self, profile: RpsProfile) -> Self
pub fn with_rps_profile(self, profile: RpsProfile) -> Self
Set RPS profile
Sourcepub fn with_bottleneck(self, bottleneck: BottleneckConfig) -> Self
pub fn with_bottleneck(self, bottleneck: BottleneckConfig) -> Self
Add bottleneck
Trait Implementations§
Source§impl Clone for SimulatorConfig
impl Clone for SimulatorConfig
Source§fn clone(&self) -> SimulatorConfig
fn clone(&self) -> SimulatorConfig
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 SimulatorConfig
impl Debug for SimulatorConfig
Source§impl<'de> Deserialize<'de> for SimulatorConfig
impl<'de> Deserialize<'de> for SimulatorConfig
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 SimulatorConfig
impl RefUnwindSafe for SimulatorConfig
impl Send for SimulatorConfig
impl Sync for SimulatorConfig
impl Unpin for SimulatorConfig
impl UnwindSafe for SimulatorConfig
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