pub struct Options {
pub max_batch_size: usize,
pub max_concurrent_batches: usize,
pub batch_timeout: Duration,
pub pending_work_capacity: usize,
pub user_agent_addition: Option<String>,
}
Expand description
Options includes various options to tweak the behavious of the sender.
Fields§
§max_batch_size: usize
how many events to collect into a batch before sending. Overrides DEFAULT_MAX_BATCH_SIZE.
max_concurrent_batches: usize
how many batches can be inflight simultaneously. Overrides DEFAULT_MAX_CONCURRENT_BATCHES.
batch_timeout: Duration
how often to send off batches. Overrides DEFAULT_BATCH_TIMEOUT.
pending_work_capacity: usize
how many events to allow to pile up. Overrides DEFAULT_PENDING_WORK_CAPACITY
user_agent_addition: Option<String>
user_agent_addition is an option that allows you to augment the “User-Agent”
header that libhoney sends along with each event. The default User-Agent is
“libhoney-go/
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Options
impl RefUnwindSafe for Options
impl Send for Options
impl Sync for Options
impl Unpin for Options
impl UnwindSafe for Options
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)