Struct tracing_forest::processor::WithFallback
source · pub struct WithFallback<P, F> { /* private fields */ }
Expand description
A Processor
composed of a primary and a fallback Processor
.
This type is returned by Processor::or
.
Trait Implementations§
source§impl<P, F> Processor for WithFallback<P, F>where
P: Processor,
F: Processor,
impl<P, F> Processor for WithFallback<P, F>where P: Processor, F: Processor,
source§fn or<P: Processor>(self, processor: P) -> WithFallback<Self, P>
fn or<P: Processor>(self, processor: P) -> WithFallback<Self, P>
Returns a
Processor
that first attempts processing with self
, and
resorts to processing with fallback
on failure. Read moresource§fn or_stdout(self) -> WithFallback<Self, Printer<Pretty, MakeStdout>>
fn or_stdout(self) -> WithFallback<Self, Printer<Pretty, MakeStdout>>
Returns a
Processor
that first attempts processing with self
, and
resorts to pretty-printing to stdout on failure.source§fn or_stderr(self) -> WithFallback<Self, Printer<Pretty, MakeStderr>>
fn or_stderr(self) -> WithFallback<Self, Printer<Pretty, MakeStderr>>
Returns a
Processor
that first attempts processing with self
, and
resorts to pretty-printing to stderr on failure.source§fn or_none(self) -> WithFallback<Self, Sink>
fn or_none(self) -> WithFallback<Self, Sink>
Returns a
Processor
that first attempts processing with self
, otherwise
silently fails.Auto Trait Implementations§
impl<P, F> RefUnwindSafe for WithFallback<P, F>where F: RefUnwindSafe, P: RefUnwindSafe,
impl<P, F> Send for WithFallback<P, F>where F: Send, P: Send,
impl<P, F> Sync for WithFallback<P, F>where F: Sync, P: Sync,
impl<P, F> Unpin for WithFallback<P, F>where F: Unpin, P: Unpin,
impl<P, F> UnwindSafe for WithFallback<P, F>where F: UnwindSafe, P: UnwindSafe,
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more