Struct slog_async::AsyncCore [] [src]

pub struct AsyncCore { /* fields omitted */ }

Core of Async drain

See Async for documentation.

Wrapping AsyncCore allows implementing custom overflow (and other errors) handling strategy.

Note: On drop AsyncCore waits for it's worker-thread to finish (after handling all previous Records sent to it). If you can't tolerate the delay, make sure you drop it eg. in another thread.

Methods

impl AsyncCore
[src]

[src]

New AsyncCore with default parameters

[src]

Build AsyncCore drain with custom parameters

Trait Implementations

impl Drain for AsyncCore
[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]

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

[src]

Avoid: See is_enabled

[src]

Avoid: See is_enabled

[src]

Avoid: See is_enabled

[src]

Avoid: See is_enabled

[src]

Avoid: See is_enabled

[src]

Avoid: See 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

impl Drop for AsyncCore
[src]

[src]

Executes the destructor for this type. Read more

Auto Trait Implementations

impl Send for AsyncCore

impl Sync for AsyncCore