pub struct AsyncPoolSinkBuilder { /* private fields */ }
Available on crate feature
multi-thread
only.Implementations§
Source§impl AsyncPoolSinkBuilder
impl AsyncPoolSinkBuilder
Sourcepub fn overflow_policy(self, overflow_policy: OverflowPolicy) -> Self
pub fn overflow_policy(self, overflow_policy: OverflowPolicy) -> Self
Specifies a overflow policy.
This parameter is optional.
When the channel is full, an incoming operation is handled according to the specified policy.
Sourcepub fn thread_pool(self, thread_pool: Arc<ThreadPool>) -> Self
pub fn thread_pool(self, thread_pool: Arc<ThreadPool>) -> Self
Specifies a custom thread pool.
This parameter is optional.
Sourcepub fn build(self) -> Result<AsyncPoolSink>
pub fn build(self) -> Result<AsyncPoolSink>
Builds a AsyncPoolSink
.
Sourcepub fn level_filter(self, level_filter: LevelFilter) -> Self
pub fn level_filter(self, level_filter: LevelFilter) -> Self
Specifies a log level filter.
This parameter is optional.
Sourcepub fn error_handler(self, handler: ErrorHandler) -> Self
pub fn error_handler(self, handler: ErrorHandler) -> Self
Specifies an error handler.
This parameter is optional.
Auto Trait Implementations§
impl Freeze for AsyncPoolSinkBuilder
impl !RefUnwindSafe for AsyncPoolSinkBuilder
impl Send for AsyncPoolSinkBuilder
impl Sync for AsyncPoolSinkBuilder
impl Unpin for AsyncPoolSinkBuilder
impl !UnwindSafe for AsyncPoolSinkBuilder
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