pub struct RunScenario { /* private fields */ }Expand description
An isolated root run with deterministic event collection.
Implementations§
Source§impl RunScenario
impl RunScenario
Sourcepub const fn context(&self) -> &RunContext
pub const fn context(&self) -> &RunContext
Returns the scenario’s run context.
Sourcepub fn complete(&self, output: Value, caused_by: &RunEvent) -> RunEvent
pub fn complete(&self, output: Value, caused_by: &RunEvent) -> RunEvent
Records a successful terminal event caused by a prior event.
Sourcepub fn recorded_events(&self) -> Vec<RunEvent>
pub fn recorded_events(&self) -> Vec<RunEvent>
Returns a snapshot of recorded events.
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for RunScenario
impl !RefUnwindSafe for RunScenario
impl !UnwindSafe for RunScenario
impl Send for RunScenario
impl Sync for RunScenario
impl Unpin for RunScenario
impl UnsafeUnpin for RunScenario
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