Struct tracing_forest::processor::Sink
source · pub struct Sink;
Expand description
A Processor
that ignores any incoming logs.
This processor cannot fail.
Trait Implementations§
source§impl Processor for Sink
impl Processor for Sink
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 RefUnwindSafe for Sink
impl Send for Sink
impl Sync for Sink
impl Unpin for Sink
impl UnwindSafe for Sink
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