Struct slog_async::AsyncBuilder [] [src]

pub struct AsyncBuilder<D> where
    D: Drain<Err = Never, Ok = ()> + Send + 'static, 
{ /* fields omitted */ }

Async builder

Methods

impl<D> AsyncBuilder<D> where
    D: Drain<Err = Never, Ok = ()> + Send + 'static, 
[src]

[src]

Set channel size used to send logging records to worker thread. When buffer is full AsyncCore will start returning AsyncError::Full.

[src]

Sets what will happen if the channel is full.

[src]

Configure a name to be used for the background thread.

The name must not contain '\0'.

Panics

If a name with '\0' is passed.

[src]

Complete building Async

[src]

Complete building Async

[src]

Complete building Async with AsyncGuard

See AsyncGuard for more information.

Trait Implementations

Auto Trait Implementations

impl<D> Send for AsyncBuilder<D>

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