Trait cucumber::Writer [−][src]
pub trait Writer<World> {
type Cli: Args;
fn handle_event<'life0, 'life1, 'async_trait>(
&'life0 mut self,
ev: Result<Event<Cucumber<World>>>,
cli: &'life1 Self::Cli
) -> Pin<Box<dyn Future<Output = ()> + 'async_trait>>
where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait;
}
Expand description
Writer of Cucumber
events to some output.
As Runner
produces events in a happened-before order (see
its order guarantees), Writer
s are required to be Normalized
.
As Cucumber::run()
returns Writer
, it can hold some state inside for
inspection after execution. See Summarize
and
Cucumber::run_and_exit()
for examples.