pub struct SimulationConfig {
pub duration_secs: f64,
pub time_step_ms: f64,
pub max_concurrent_requests: u32,
pub load_pattern: String,
pub peak_load: f64,
pub enable_fault_injection: bool,
pub fault_rate: f64,
}Expand description
Szimulációs konfiguráció
Fields§
§duration_secs: f64Szimuláció időtartama másodpercben
time_step_ms: f64Időlépés mérete ms-ben
max_concurrent_requests: u32Maximális egyidejű kérések száma
load_pattern: StringTerhelési minta (pl. “linear”, “spike”, “sine”, “random”)
peak_load: f64Csúcs terhelés (0.0 - 1.0)
enable_fault_injection: boolHibainjektálás engedélyezése
fault_rate: f64Hibaarány (0.0 - 1.0)
Trait Implementations§
Source§impl Clone for SimulationConfig
impl Clone for SimulationConfig
Source§impl Debug for SimulationConfig
impl Debug for SimulationConfig
Auto Trait Implementations§
impl Freeze for SimulationConfig
impl RefUnwindSafe for SimulationConfig
impl Send for SimulationConfig
impl Sync for SimulationConfig
impl Unpin for SimulationConfig
impl UnsafeUnpin for SimulationConfig
impl UnwindSafe for SimulationConfig
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<A, B, T> HttpServerConnExec<A, B> for Twhere
B: Body,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more