Struct slog::MapError
[−]
[src]
pub struct MapError<D: Drain, E> { /* fields omitted */ }
Drain
mapping error returned by another Drain
See DrainExt::map_err
for convenience function.
Methods
impl<D: Drain, E> MapError<D, E>
[src]
fn new<F: 'static + Sync + Send + Fn(<D as Drain>::Error) -> E>(
drain: D,
map_fn: F
) -> Self
drain: D,
map_fn: F
) -> Self
Create Filter
wrapping given drain