Struct slog_async::AsyncCoreBuilder
[−]
[src]
pub struct AsyncCoreBuilder<D> where
D: Drain<Err = Never, Ok = ()> + Send + 'static, { /* fields omitted */ }
AsyncCore
builder
Methods
impl<D> AsyncCoreBuilder<D> where
D: Drain<Err = Never, Ok = ()> + Send + 'static,
[src]
D: Drain<Err = Never, Ok = ()> + Send + 'static,
fn chan_size(self, s: usize) -> Self
Set channel size used to send logging records to worker thread. When
buffer is full AsyncCore
will start returning AsyncError::Full
.
fn build(self) -> AsyncCore
Build AsyncCore
fn build_no_guard(self) -> AsyncCore
Build AsyncCore
fn build_with_guard(self) -> (AsyncCore, AsyncGuard)
Build AsyncCore
with AsyncGuard
See AsyncGuard
for more information.