pub struct RoutingAppenderBuilder { /* private fields */ }Expand description
A builder for RoutingAppenders.
Implementations§
Source§impl RoutingAppenderBuilder
impl RoutingAppenderBuilder
Sourcepub fn idle_timeout(self, idle_timeout: Duration) -> RoutingAppenderBuilder
pub fn idle_timeout(self, idle_timeout: Duration) -> RoutingAppenderBuilder
Sets the duration after which an appender that has not been used will be removed from the cache.
Defaults to 2 minutes.
Sourcepub fn build(self, router: Box<dyn Route>) -> RoutingAppender
pub fn build(self, router: Box<dyn Route>) -> RoutingAppender
Consumes the builder, producing a RoutingAppender.
Auto Trait Implementations§
impl Freeze for RoutingAppenderBuilder
impl RefUnwindSafe for RoutingAppenderBuilder
impl Send for RoutingAppenderBuilder
impl Sync for RoutingAppenderBuilder
impl Unpin for RoutingAppenderBuilder
impl UnwindSafe for RoutingAppenderBuilder
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