Trait 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.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so 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,