Struct dogstatsd::BatchingOptions
source · pub struct BatchingOptions {
pub max_buffer_size: usize,
pub max_time: Duration,
pub max_retry_attempts: usize,
pub initial_retry_delay: u64,
}
Expand description
The struct that represents the options available for the Dogstatsd client.
Fields§
§max_buffer_size: usize
The maximum buffer size in bytes of a batch of events.
max_time: Duration
The maximum time before sending a batch of events.
max_retry_attempts: usize
The maximum retry attempts if we fail to flush our buffer
initial_retry_delay: u64
Upon retry, there is an exponential backoff, this value sets the starting value
Trait Implementations§
source§impl Clone for BatchingOptions
impl Clone for BatchingOptions
source§fn clone(&self) -> BatchingOptions
fn clone(&self) -> BatchingOptions
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for BatchingOptions
impl Debug for BatchingOptions
source§impl PartialEq for BatchingOptions
impl PartialEq for BatchingOptions
source§fn eq(&self, other: &BatchingOptions) -> bool
fn eq(&self, other: &BatchingOptions) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for BatchingOptions
impl StructuralPartialEq for BatchingOptions
Auto Trait Implementations§
impl RefUnwindSafe for BatchingOptions
impl Send for BatchingOptions
impl Sync for BatchingOptions
impl Unpin for BatchingOptions
impl UnwindSafe for BatchingOptions
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