pub struct AsyncBuilder { /* private fields */ }Expand description
A builder for configuring an async appender.
Implementations§
Source§impl AsyncBuilder
impl AsyncBuilder
Sourcepub fn new(thread_name: impl Into<String>) -> AsyncBuilder
pub fn new(thread_name: impl Into<String>) -> AsyncBuilder
Create a new async appender builder.
Sourcepub fn buffered_lines_limit(self, buffered_lines_limit: Option<usize>) -> Self
pub fn buffered_lines_limit(self, buffered_lines_limit: Option<usize>) -> Self
Set the buffer size of pending messages.
Sourcepub fn overflow_block(self) -> Self
pub fn overflow_block(self) -> Self
Set the overflow policy to block when the buffer is full.
Sourcepub fn overflow_drop_incoming(self) -> Self
pub fn overflow_drop_incoming(self) -> Self
Set the overflow policy to drop incoming messages when the buffer is full.
Sourcepub fn trap(self, trap: impl Into<Box<dyn Trap>>) -> Self
pub fn trap(self, trap: impl Into<Box<dyn Trap>>) -> Self
Set the trap for this async appender.
Auto Trait Implementations§
impl Freeze for AsyncBuilder
impl !RefUnwindSafe for AsyncBuilder
impl Send for AsyncBuilder
impl Sync for AsyncBuilder
impl Unpin for AsyncBuilder
impl !UnwindSafe for AsyncBuilder
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more