pub struct StormConfig {
pub seed: u64,
pub pattern: StormPattern,
pub initial_size: (u16, u16),
pub min_delay_ms: u64,
pub max_delay_ms: u64,
pub min_width: u16,
pub max_width: u16,
pub min_height: u16,
pub max_height: u16,
pub case_name: String,
pub logging_enabled: bool,
}Expand description
Configuration for resize storm generation.
Fields§
§seed: u64Random seed for deterministic generation.
pattern: StormPatternStorm pattern to generate.
initial_size: (u16, u16)Initial terminal size before storm begins.
min_delay_ms: u64Minimum delay between resizes (ms).
max_delay_ms: u64Maximum delay between resizes (ms).
min_width: u16Minimum terminal width.
max_width: u16Maximum terminal width.
min_height: u16Minimum terminal height.
max_height: u16Maximum terminal height.
case_name: StringTest case name for logging.
logging_enabled: boolEnable verbose JSONL logging.
Implementations§
Source§impl StormConfig
impl StormConfig
Sourcepub fn with_pattern(self, pattern: StormPattern) -> Self
pub fn with_pattern(self, pattern: StormPattern) -> Self
Set the storm pattern.
Sourcepub fn with_initial_size(self, width: u16, height: u16) -> Self
pub fn with_initial_size(self, width: u16, height: u16) -> Self
Set the initial terminal size.
Sourcepub fn with_delay_range(self, min_ms: u64, max_ms: u64) -> Self
pub fn with_delay_range(self, min_ms: u64, max_ms: u64) -> Self
Set delay range between resizes.
Sourcepub fn with_size_bounds(
self,
min_width: u16,
max_width: u16,
min_height: u16,
max_height: u16,
) -> Self
pub fn with_size_bounds( self, min_width: u16, max_width: u16, min_height: u16, max_height: u16, ) -> Self
Set size bounds.
Sourcepub fn with_case_name(self, name: impl Into<String>) -> Self
pub fn with_case_name(self, name: impl Into<String>) -> Self
Set the test case name.
Sourcepub fn with_logging(self, enabled: bool) -> Self
pub fn with_logging(self, enabled: bool) -> Self
Enable or disable logging.
Trait Implementations§
Source§impl Clone for StormConfig
impl Clone for StormConfig
Source§fn clone(&self) -> StormConfig
fn clone(&self) -> StormConfig
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 StormConfig
impl Debug for StormConfig
Auto Trait Implementations§
impl Freeze for StormConfig
impl RefUnwindSafe for StormConfig
impl Send for StormConfig
impl Sync for StormConfig
impl Unpin for StormConfig
impl UnsafeUnpin for StormConfig
impl UnwindSafe for StormConfig
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