pub struct AsyncPoolSinkBuilder { /* private fields */ }
Implementations§
Source§impl AsyncPoolSinkBuilder
impl AsyncPoolSinkBuilder
Sourcepub fn sink(self, sink: Arc<dyn Sink>) -> Self
Available on crate feature multi-thread
only.
pub fn sink(self, sink: Arc<dyn Sink>) -> Self
multi-thread
only.Add a Sink
.
Sourcepub fn sinks<I>(self, sinks: I) -> Self
Available on crate feature multi-thread
only.
pub fn sinks<I>(self, sinks: I) -> Self
multi-thread
only.Add multiple Sink
s.
Sourcepub fn overflow_policy(self, overflow_policy: OverflowPolicy) -> Self
Available on crate feature multi-thread
only.
pub fn overflow_policy(self, overflow_policy: OverflowPolicy) -> Self
multi-thread
only.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
Available on crate feature multi-thread
only.
pub fn thread_pool(self, thread_pool: Arc<ThreadPool>) -> Self
multi-thread
only.Specifies a custom thread pool.
This parameter is optional.
Sourcepub fn level_filter(self, level_filter: LevelFilter) -> Self
Available on crate feature multi-thread
only.
pub fn level_filter(self, level_filter: LevelFilter) -> Self
multi-thread
only.Specifies a log level filter.
This parameter is optional.
Sourcepub fn formatter<F>(self, formatter: F) -> Selfwhere
F: Formatter + 'static,
Available on crate feature multi-thread
only.
pub fn formatter<F>(self, formatter: F) -> Selfwhere
F: Formatter + 'static,
multi-thread
only.Specifies a formatter.
This parameter is optional.
Sourcepub fn error_handler<F: Into<ErrorHandler>>(self, handler: F) -> Self
Available on crate feature multi-thread
only.
pub fn error_handler<F: Into<ErrorHandler>>(self, handler: F) -> Self
multi-thread
only.Specifies an error handler.
This parameter is optional.
Sourcepub fn build(self) -> Result<AsyncPoolSink>
Available on crate feature multi-thread
only.
pub fn build(self) -> Result<AsyncPoolSink>
multi-thread
only.Builds a AsyncPoolSink
.
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