pub struct ScenarioRunner { /* private fields */ }Expand description
Executes a [Scenario] against a real browser with optional LLM
assistance for element targeting and assertions.
Implementations§
Source§impl ScenarioRunner
impl ScenarioRunner
Sourcepub fn new(
scenario_config: ScenarioConfig,
definitions: Vec<AssertDefinition>,
) -> Self
pub fn new( scenario_config: ScenarioConfig, definitions: Vec<AssertDefinition>, ) -> Self
Creates a new runner with the given scenario configuration and assertion definitions.
Sourcepub fn usage_tracker(&self) -> Arc<UsageTracker>
pub fn usage_tracker(&self) -> Arc<UsageTracker>
Returns a clone of the UsageTracker for reporting.
Sourcepub const fn budget_tracker(&self) -> &BudgetTracker
pub const fn budget_tracker(&self) -> &BudgetTracker
Returns a reference to the BudgetTracker.
Auto Trait Implementations§
impl Freeze for ScenarioRunner
impl RefUnwindSafe for ScenarioRunner
impl Send for ScenarioRunner
impl Sync for ScenarioRunner
impl Unpin for ScenarioRunner
impl UnsafeUnpin for ScenarioRunner
impl UnwindSafe for ScenarioRunner
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