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]

Create IgnoreErr wrapping given subdrain

Trait Implementations

impl<D: Drain> Drain for IgnoreErr<D>
[src]

Type of potential error returned during logging

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