Struct slog::MapError [] [src]

pub struct MapError<D: Drain, E> {
    // some fields omitted
}

Map error of a Drain

Methods

impl<D: Drain, E> MapError<D, E>
[src]

Create Filter wrapping given subdrain and passing to it records only the cond is true

Trait Implementations

impl<D: Drain, E> Drain for MapError<D, E>
[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