[][src]Struct slog_async::AsyncBuilder

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

Async builder

Implementations

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

pub fn chan_size(self, s: usize) -> Self[src]

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

pub fn overflow_strategy(self, overflow_strategy: OverflowStrategy) -> Self[src]

Sets what will happen if the channel is full.

pub fn thread_name(self, name: String) -> Self[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.

pub fn build(self) -> Async[src]

Complete building Async

pub fn build_no_guard(self) -> Async[src]

Complete building Async

pub fn build_with_guard(self) -> (Async, AsyncGuard)[src]

Complete building Async with AsyncGuard

See AsyncGuard for more information.

Auto Trait Implementations

impl<D> RefUnwindSafe for AsyncBuilder<D> where
    D: RefUnwindSafe
[src]

impl<D> Send for AsyncBuilder<D>[src]

impl<D> Sync for AsyncBuilder<D> where
    D: Sync
[src]

impl<D> Unpin for AsyncBuilder<D> where
    D: Unpin
[src]

impl<D> UnwindSafe for AsyncBuilder<D> where
    D: UnwindSafe
[src]

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> SendSyncUnwindSafe for T where
    T: Send + Sync + UnwindSafe + ?Sized
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.