Trait cucumber::ArbitraryWriter

source ·
pub trait ArbitraryWriter<World, Value>: Writer<World> {
    // Required method
    fn write(&mut self, val: Value) -> impl Future<Output = ()>;
}
Expand description

Writer that also can output an arbitrary Value in addition to regular Cucumber events.

Required Methods§

source

fn write(&mut self, val: Value) -> impl Future<Output = ()>

Writes val to the Writer’s output.

Object Safety§

This trait is not object safe.

Implementors§

source§

impl<W, L, R, Val> Arbitrary<W, Val> for Tee<L, R>
where W: World, L: Arbitrary<W, Val>, R: Arbitrary<W, Val>, Val: Clone,

source§

impl<W, Val, Out> Arbitrary<W, Val> for Basic<Out>
where W: World + Debug, Val: AsRef<str>, Out: Write,

source§

impl<W, Val, Out> Arbitrary<W, Val> for Libtest<W, Out>
where W: World + Debug, Val: AsRef<str>, Out: Write,

Available on crate feature libtest only.
source§

impl<W, Val, Wr> Arbitrary<W, Val> for Arbitrary<Wr>
where Wr: ?Sized, Self: Writer<W>,

source§

impl<W, Val, Wr> Arbitrary<W, Val> for Stats<Wr>
where Wr: Arbitrary<W, Val> + ?Sized, Self: Writer<W>,

source§

impl<W, Wr, Val> Arbitrary<W, Val> for AssertNormalized<Wr>
where W: World, Wr: Arbitrary<W, Val> + ?Sized,

source§

impl<W, Wr, Val> Arbitrary<W, Val> for Normalize<W, Wr>
where Wr: Arbitrary<W, Val>,

source§

impl<W, Wr, Val> Arbitrary<W, Val> for Summarize<Wr>
where W: World, Self: Writer<W>, Wr: Arbitrary<W, Val>,

source§

impl<W, Wr, Val, F> Arbitrary<W, Val> for FailOnSkipped<Wr, F>
where W: World, Self: Writer<W>, Wr: Arbitrary<W, Val>,

source§

impl<W, Wr, Val, F> Arbitrary<W, Val> for Repeat<W, Wr, F>
where W: World, Wr: Arbitrary<W, Val> + NonTransforming, F: Fn(&Result<Event<Cucumber<W>>>) -> bool,