Struct slog::MapError [] [src]

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

Drain mapping error returned by another Drain

See Drain::map_err for convenience function.

Methods

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

[src]

Create Filter wrapping given drain

Trait Implementations

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

Type returned by this drain Read more

Type of potential errors that can be returned by this Drain

[src]

Handle one logging statement (Record) Read more

[src]

Check if messages at the specified log level are enabled for this logger. Read more

[src]

Check if messages at the critical log level are enabled for this logger via is_enabled.

[src]

Check if messages at the error log level are enabled for this logger via is_enabled.

[src]

Check if messages at the warning log level are enabled for this logger via is_enabled.

[src]

Check if messages at the info log level are enabled for this logger via is_enabled.

[src]

Check if messages at the debug log level are enabled for this logger via is_enabled.

[src]

Check if messages at the trace log level are enabled for this logger via is_enabled.

[src]

Pass Drain through a closure, eg. to wrap into another Drain. Read more

[src]

Filter logging records passed to Drain Read more

[src]

Filter logging records passed to Drain (by level) Read more

[src]

Map logging errors returned by this drain Read more

[src]

Ignore results returned by this drain Read more

[src]

Make Self panic when returning any errors Read more

Auto Trait Implementations

impl<D, E> Send for MapError<D, E> where
    D: Send

impl<D, E> Sync for MapError<D, E> where
    D: Sync