Skip to main content

Processor

Trait Processor 

Source
pub trait Processor:
    Service<Exchange, Response = Exchange, Error = CamelError>
    + Clone
    + Send
    + Sync
    + 'static { }
Expand description

A Processor is a Tower Service that transforms an Exchange.

Any type implementing Service<Exchange, Response = Exchange, Error = CamelError> that is also Clone + Send + Sync + 'static automatically implements Processor.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§

Source§

impl<P> Processor for P
where P: Service<Exchange, Response = Exchange, Error = CamelError> + Clone + Send + Sync + 'static,