Struct slog::IgnoreErr
[−]
[src]
pub struct IgnoreErr<D: Drain> { // some fields omitted }
Error ignoring fuse
Logger
requires a root drain to handle all errors (Drain::Error == ()
),
IgnoreErr
will ignore all errors of the drain it wraps.
Methods
impl<D: Drain> IgnoreErr<D>
[src]
fn new(drain: D) -> Self
Create IgnoreErr
wrapping given subdrain
Trait Implementations
impl<D: Drain> Drain for IgnoreErr<D>
[src]
type Error = ()
Type of potential error returned during logging
fn log(&self, info: &Record, logger_values: &OwnedKeyValueList) -> Result<(), ()>
Write one logging record As an optimization (avoiding allocations), loggers are responsible for providing a byte buffer, that Drain
can use for their own needs. Read more