Struct cucumber::writer::discard::Failure [−][src]
pub struct Failure<Wr: ?Sized>(_);
Expand description
Wrapper providing a no-op FailureWriter
implementation returning only
0
.
Intended to be used for feeding a non-FailureWriter
Writer
into a
writer::Tee
, as the later accepts only FailureWriter
s.
Implementations
Wraps the given Writer
into a discard::Failure
one.
Trait Implementations
Always returns 0
.
Always returns 0
.
Always returns 0
.
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<Wr: ?Sized> RefUnwindSafe for Failure<Wr> where
Wr: RefUnwindSafe,
impl<Wr: ?Sized> UnwindSafe for Failure<Wr> where
Wr: 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