useanyhow::Result;usestd::future::Future;/// A scenario represents a single user's journey through your system.
////// It is a single unit of work that will be executed by the load generator.
/// Scenarios are defined as async functions that return a `Result<()>`.
pubtraitScenario{/// Runs the scenario.
fnrun(&self)-> impl Future<Output = Result<()>>+Send+'static;}impl<F, Fut> Scenario forFwhere
F: Fn() -> Fut,
Fut:Future<Output = Result<()>> + Send + 'static,
{fnrun(&self)-> impl Future<Output = Result<()>>+Send+'static{self()}}