Skip to main content

SplitExpression

Type Alias SplitExpression 

Source
pub type SplitExpression = Arc<dyn Fn(&Exchange) -> Result<Vec<Exchange>, CamelError> + Send + Sync>;
Expand description

A function that splits a single exchange into multiple fragment exchanges.

Built-in expressions return CamelError::TypeConversionFailed when the body type does not match their input contract; empty-content bodies yield Ok(Vec::new()) (pass-through).

Aliased Typeยง

pub struct SplitExpression { /* private fields */ }