Struct cucumber::writer::Tee [−][src]
pub struct Tee<L, R> { /* fields omitted */ }
Expand description
Wrapper for passing events to multiple terminating Writer
s
simultaneously.
Blanket implementations
ArbitraryWriter
and FailureWriter
are implemented only in case both
left
and right
Writer
s implement them. In case one of them doesn’t
implement the required traits, use
WriterExt::discard_arbitrary_writes()
and
WriterExt::discard_failure_writes()
methods to provide the one with
no-op implementations.
Implementations
Trait Implementations
Returns number of parsing errors.
Indicates whether there were failures/errors during execution.
CLI options of this Writer
. In case no options should be introduced,
just use cli::Empty
. Read more
Auto Trait Implementations
impl<L, R> RefUnwindSafe for Tee<L, R> where
L: RefUnwindSafe,
R: RefUnwindSafe,
impl<L, R> UnwindSafe for Tee<L, R> where
L: UnwindSafe,
R: UnwindSafe,
Blanket Implementations
Mutably borrows from an owned value. Read more
Asserts this Writer
being Normalized
. Read more
pub fn fail_on_skipped(
Self
) -> FailOnSkipped<T, fn(&Feature, Option<&Rule>, &Scenario) -> bool>
pub fn fail_on_skipped(
Self
) -> FailOnSkipped<T, fn(&Feature, Option<&Rule>, &Scenario) -> bool>
pub fn fail_on_skipped_with<F>(Self, F) -> FailOnSkipped<T, F> where
F: Fn(&Feature, Option<&Rule>, &Scenario) -> bool,
pub fn fail_on_skipped_with<F>(Self, F) -> FailOnSkipped<T, F> where
F: Fn(&Feature, Option<&Rule>, &Scenario) -> bool,
Wraps this Writer
into a discard::Arbitrary
one, providing a
no-op ArbitraryWriter
implementation. Read more
Wraps this Writer
into a discard::Arbitrary
one, providing a
no-op FailureWriter
implementation returning only 0
. Read more