Struct slog_async::AsyncCoreBuilder [−][src]
AsyncCore
builder
Implementations
impl<D> AsyncCoreBuilder<D> where
D: Drain<Err = Never, Ok = ()> + Send + 'static,
[src]
D: Drain<Err = Never, Ok = ()> + Send + 'static,
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 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
or block, depending on
the blocking
configuration.
pub fn blocking(self, blocking: bool) -> Self
[src]
Should the logging call be blocking if the channel is full?
Default is false, in which case it’ll return AsyncError::Full
.
pub fn build(self) -> AsyncCore
[src]
Build AsyncCore
pub fn build_no_guard(self) -> AsyncCore
[src]
Build AsyncCore
pub fn build_with_guard(self) -> (AsyncCore, AsyncGuard)
[src]
Build AsyncCore
with AsyncGuard
See AsyncGuard
for more information.
Auto Trait Implementations
impl<D> RefUnwindSafe for AsyncCoreBuilder<D> where
D: RefUnwindSafe,
D: RefUnwindSafe,
impl<D> Send for AsyncCoreBuilder<D>
impl<D> Sync for AsyncCoreBuilder<D> where
D: Sync,
D: Sync,
impl<D> Unpin for AsyncCoreBuilder<D> where
D: Unpin,
D: Unpin,
impl<D> UnwindSafe for AsyncCoreBuilder<D> where
D: UnwindSafe,
D: UnwindSafe,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> SendSyncUnwindSafe for T where
T: Send + Sync + UnwindSafe + ?Sized,
[src]
T: Send + Sync + UnwindSafe + ?Sized,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,