Struct slog::IgnoreResult[][src]

pub struct IgnoreResult<D: Drain> { /* fields omitted */ }

Drain ignoring result

Logger requires a root drain to handle all errors (Drain::Err=()), and returns nothing (Drain::Ok=()) IgnoreResult will ignore any result returned by the Drain it wraps.

Methods

impl<D: Drain> IgnoreResult<D>
[src]

Create IgnoreResult wrapping drain

Trait Implementations

impl<D: Clone + Drain> Clone for IgnoreResult<D>
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

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

Type returned by this drain Read more

Type of potential errors that can be returned by this Drain

Handle one logging statement (Record) Read more

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

Avoid: See is_enabled

Avoid: See is_enabled

Avoid: See is_enabled

Avoid: See is_enabled

Avoid: See is_enabled

Avoid: See is_enabled

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

Filter logging records passed to Drain Read more

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

Map logging errors returned by this drain Read more

Ignore results returned by this drain Read more

Make Self panic when returning any errors Read more

Auto Trait Implementations

impl<D> Send for IgnoreResult<D> where
    D: Send

impl<D> Sync for IgnoreResult<D> where
    D: Sync