Struct cucumber::runner::WorldRunner
[−]
[src]
pub struct WorldRunner<World> { /* fields omitted */ }
The step runner for Cucumber state
The runner stands in for the Cucumber instance and provides an interface for Request events to be translated into state changes and step invocations, along with a Response. These are typically supplied by a running Server, but may be supplied by a native Gherkin implementation later.
Typically this struct will only be instantiated by the user, and then passed to a Server to maintain.
Methods
impl<World> WorldRunner<World>
[src]
fn new(world: World) -> WorldRunner<World>
Trait Implementations
impl<World> CommandRunner for WorldRunner<World>
[src]
fn execute_cmd(&mut self, req: Request) -> Response
impl<World> CucumberRegistrar<World> for WorldRunner<World>
[src]
fn given(
&mut self,
file: &str,
line: u32,
regex: Regex,
step: SimpleStep<World>
)
&mut self,
file: &str,
line: u32,
regex: Regex,
step: SimpleStep<World>
)