pub struct CloudDrainBuilder { /* private fields */ }Expand description
Cloud drain builder.
Implementations§
Source§impl CloudDrainBuilder
impl CloudDrainBuilder
Sourcepub fn queue_capacity(self, queue_capacity: Option<usize>) -> Self
pub fn queue_capacity(self, queue_capacity: Option<usize>) -> Self
Set the log message queue capacity or None for unlimited (the default
is None).
Sourcepub fn max_concurrency(self, max_concurrency: usize) -> Self
pub fn max_concurrency(self, max_concurrency: usize) -> Self
Set the maximum number of concurrent message sends (the default is 16).
Sourcepub fn initial_retry_delay(self, initial_retry_delay: Duration) -> Self
pub fn initial_retry_delay(self, initial_retry_delay: Duration) -> Self
Set the initial retry delay (the default is 1 second).
Sourcepub fn max_retry_delay(self, max_retry_delay: Duration) -> Self
pub fn max_retry_delay(self, max_retry_delay: Duration) -> Self
Set the maximum retry delay (the default is 60 seconds).
Sourcepub fn max_retries(self, max_retries: Option<u32>) -> Self
pub fn max_retries(self, max_retries: Option<u32>) -> Self
Set the maximum number of retries or None for unlimited (the default
is unlimited).
Sourcepub fn debug(self, debug: bool) -> Self
pub fn debug(self, debug: bool) -> Self
Enable or disable debug mode (the default is disabled).
In the debug mode you’ll be able to see some runtime info on stderr that will help you with setting up the drain (e.g. failed requests). With debug mode disabled, all errors will be silently ignored.
Sourcepub fn build<C, S, M, B, BB>(
self,
client: C,
serializer: S,
batch_builder: BB,
) -> (CloudDrain<S, M>, CloudDrainTask, CloudDrainHandle<M>)
pub fn build<C, S, M, B, BB>( self, client: C, serializer: S, batch_builder: BB, ) -> (CloudDrain<S, M>, CloudDrainTask, CloudDrainHandle<M>)
Build the cloud drain.
§Arguments
client- a cloud service clientserializer- log message serializerbatch_builder- log message batch builder
Trait Implementations§
Auto Trait Implementations§
impl Freeze for CloudDrainBuilder
impl RefUnwindSafe for CloudDrainBuilder
impl Send for CloudDrainBuilder
impl Sync for CloudDrainBuilder
impl Unpin for CloudDrainBuilder
impl UnsafeUnpin for CloudDrainBuilder
impl UnwindSafe for CloudDrainBuilder
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