pub struct EventQueueConfig {
pub batch_size: usize,
pub flush_interval: Duration,
pub max_queue_size: usize,
pub enabled: bool,
pub sample_rate: f64,
pub persist_events: bool,
pub event_storage_path: Option<PathBuf>,
pub max_persisted_events: usize,
pub persistence_flush_interval: Duration,
}Expand description
Configuration for the event queue.
Fields§
§batch_size: usizeNumber of events to batch before sending. Default: 10
flush_interval: DurationInterval between automatic flushes. Default: 30 seconds
max_queue_size: usizeMaximum number of events to queue. Default: 1000
enabled: boolWhether events are enabled. Default: true
sample_rate: f64Sample rate (0.0 to 1.0). Default: 1.0
persist_events: boolEnable crash-resilient event persistence. Default: false
event_storage_path: Option<PathBuf>Directory path for event storage.
max_persisted_events: usizeMaximum number of events to persist. Default: 10000
persistence_flush_interval: DurationInterval between persistence flushes to disk. Default: 1000ms
Implementations§
Source§impl EventQueueConfig
impl EventQueueConfig
Sourcepub fn builder() -> EventQueueConfigBuilder
pub fn builder() -> EventQueueConfigBuilder
Create a new config builder.
Trait Implementations§
Source§impl Clone for EventQueueConfig
impl Clone for EventQueueConfig
Source§fn clone(&self) -> EventQueueConfig
fn clone(&self) -> EventQueueConfig
Returns a duplicate 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 EventQueueConfig
impl Debug for EventQueueConfig
Auto Trait Implementations§
impl Freeze for EventQueueConfig
impl RefUnwindSafe for EventQueueConfig
impl Send for EventQueueConfig
impl Sync for EventQueueConfig
impl Unpin for EventQueueConfig
impl UnwindSafe for EventQueueConfig
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