pub enum CorrelationStrategy {
HeaderName(String),
Expression {
expr: String,
language: String,
},
Fn(Arc<dyn Fn(&Exchange) -> Option<String> + Send + Sync>),
}Expand description
Strategy for correlating exchanges into aggregation buckets.
Variants§
HeaderName(String)
Correlate by the value of a named header.
Expression
Correlate by evaluating an expression using a language registry.
Fn(Arc<dyn Fn(&Exchange) -> Option<String> + Send + Sync>)
Correlate using a custom function.
Trait Implementations§
Source§impl Clone for CorrelationStrategy
impl Clone for CorrelationStrategy
Auto Trait Implementations§
impl Freeze for CorrelationStrategy
impl !RefUnwindSafe for CorrelationStrategy
impl Send for CorrelationStrategy
impl Sync for CorrelationStrategy
impl Unpin for CorrelationStrategy
impl UnsafeUnpin for CorrelationStrategy
impl !UnwindSafe for CorrelationStrategy
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