pub trait ArbitraryWriter<'val, World, Value: 'val>: Writer<World> {
    // Required method
    fn write<'life0, 'async_trait>(
        &'life0 mut self,
        val: Value
    ) -> Pin<Box<dyn Future<Output = ()> + 'async_trait>>
       where Self: 'async_trait,
             'val: 'async_trait,
             'life0: 'async_trait;
}
Expand description

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

Required Methods§

source

fn write<'life0, 'async_trait>( &'life0 mut self, val: Value ) -> Pin<Box<dyn Future<Output = ()> + 'async_trait>>
where Self: 'async_trait, 'val: 'async_trait, 'life0: 'async_trait,

Writes val to the Writer’s output.

Implementors§

source§

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

source§

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

source§

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

Available on crate feature libtest only.
source§

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

source§

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

source§

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

source§

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

source§

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

source§

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

source§

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