pub struct UseEnrichedBody;Expand description
Default strategy: discard the original body, replace with the enriched body.
Headers and properties from the original are preserved; enriched headers
are discarded. Implement a custom EnrichmentStrategy if you need to merge
headers from the enriched exchange.
Trait Implementations§
Source§impl EnrichmentStrategy for UseEnrichedBody
impl EnrichmentStrategy for UseEnrichedBody
fn aggregate(&self, original: Exchange, enriched: Exchange) -> Exchange
Source§fn on_no_poll<'life0, 'async_trait>(
&'life0 self,
original: Exchange,
) -> Pin<Box<dyn Future<Output = Result<Exchange, CamelError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn on_no_poll<'life0, 'async_trait>(
&'life0 self,
original: Exchange,
) -> Pin<Box<dyn Future<Output = Result<Exchange, CamelError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Called when pollEnrich receives no message (
None from
PollingConsumer::receive). The default implementation passes the
original exchange through unchanged, matching Camel 4.x passthrough
semantics. Override to throw an error or perform other actions.Auto Trait Implementations§
impl Freeze for UseEnrichedBody
impl RefUnwindSafe for UseEnrichedBody
impl Send for UseEnrichedBody
impl Sync for UseEnrichedBody
impl Unpin for UseEnrichedBody
impl UnsafeUnpin for UseEnrichedBody
impl UnwindSafe for UseEnrichedBody
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