pub struct LabScenario { /* private fields */ }Expand description
Deterministic scenario runner for FrankenLab-style test harnesses.
Implementations§
Source§impl LabScenario
impl LabScenario
Sourcepub fn new(prefix: &str, scenario_name: &str, default_seed: u64) -> Self
pub fn new(prefix: &str, scenario_name: &str, default_seed: u64) -> Self
Create a scenario runner using environment-driven determinism settings.
Sourcepub fn new_with(
prefix: &str,
scenario_name: &str,
seed: u64,
deterministic: bool,
time_step_ms: u64,
) -> Self
pub fn new_with( prefix: &str, scenario_name: &str, seed: u64, deterministic: bool, time_step_ms: u64, ) -> Self
Create a scenario runner with explicit determinism settings.
Sourcepub fn fixture(&self) -> &DeterminismFixture
pub fn fixture(&self) -> &DeterminismFixture
Access the underlying fixture for this scenario.
Sourcepub fn run<T>(
&self,
run: impl FnOnce(&LabScenarioContext<'_>) -> T,
) -> LabScenarioRun<T>
pub fn run<T>( &self, run: impl FnOnce(&LabScenarioContext<'_>) -> T, ) -> LabScenarioRun<T>
Execute a deterministic scenario closure and emit start/end JSONL records.
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for LabScenario
impl RefUnwindSafe for LabScenario
impl Send for LabScenario
impl Sync for LabScenario
impl Unpin for LabScenario
impl UnsafeUnpin for LabScenario
impl UnwindSafe for LabScenario
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