Skip to main content

DemoScenario

Trait DemoScenario 

Source
pub trait DemoScenario: Send + Sync {
    // Required methods
    fn name(&self) -> &str;
    fn description(&self) -> &str;
    fn total_stages(&self) -> usize;
    fn initialize(&mut self, runner: &mut DemoRunner);
    fn execute_stage(&mut self, stage: usize, runner: &mut DemoRunner) -> bool;
    fn cleanup(&mut self, runner: &mut DemoRunner);
}
Expand description

Demo scenario trait

Required Methods§

Source

fn name(&self) -> &str

Get scenario name

Source

fn description(&self) -> &str

Get scenario description

Source

fn total_stages(&self) -> usize

Get total number of stages

Source

fn initialize(&mut self, runner: &mut DemoRunner)

Initialize the scenario

Source

fn execute_stage(&mut self, stage: usize, runner: &mut DemoRunner) -> bool

Execute the next stage

Source

fn cleanup(&mut self, runner: &mut DemoRunner)

Clean up after completion

Implementors§