pub struct PriorityConfig {
pub max_queue_size: usize,
pub log_drops: bool,
pub priority_mapper: Option<Arc<dyn Fn(&Event<()>) -> Priority + Send + Sync>>,
}Expand description
Configuration for priority event processing
Fields§
§max_queue_size: usizeMaximum queue size (default: 1000)
log_drops: boolWhether to log dropped events (default: true)
priority_mapper: Option<Arc<dyn Fn(&Event<()>) -> Priority + Send + Sync>>Custom priority mapper (default: None, uses automatic detection)
Trait Implementations§
Source§impl Clone for PriorityConfig
impl Clone for PriorityConfig
Source§fn clone(&self) -> PriorityConfig
fn clone(&self) -> PriorityConfig
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 PriorityConfig
impl Debug for PriorityConfig
Auto Trait Implementations§
impl Freeze for PriorityConfig
impl !RefUnwindSafe for PriorityConfig
impl Send for PriorityConfig
impl Sync for PriorityConfig
impl Unpin for PriorityConfig
impl !UnwindSafe for PriorityConfig
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§impl<T> Inspectable for T
impl<T> Inspectable for T
Source§fn inspect_if(self, condition: bool, label: &str) -> Selfwhere
Self: Debug,
fn inspect_if(self, condition: bool, label: &str) -> Selfwhere
Self: Debug,
Conditionally inspect this value
Source§fn inspect_with<F>(self, label: &str, f: F) -> Self
fn inspect_with<F>(self, label: &str, f: F) -> Self
Inspect with a custom formatter