Struct slog_async::AsyncCoreBuilder[][src]

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

AsyncCore builder

Implementations

Configure a name to be used for the background thread.

The name must not contain ‘\0’.

Panics

If a name with ‘\0’ is passed.

Set channel size used to send logging records to worker thread. When buffer is full AsyncCore will start returning AsyncError::Full or block, depending on the blocking configuration.

Should the logging call be blocking if the channel is full?

Default is false, in which case it’ll return AsyncError::Full.

Build AsyncCore

Build AsyncCore

Build AsyncCore with AsyncGuard

See AsyncGuard for more information.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.