Skip to main content

BoxProcessor

Type Alias BoxProcessor 

Source
pub type BoxProcessor = BoxCloneService<Exchange, Exchange, CamelError>;
Expand description

A type-erased, cloneable processor. This is the main runtime representation of a processor pipeline — a composed chain of Tower Services erased to a single boxed type.

Aliased Type§

pub struct BoxProcessor(/* private fields */);

Trait Implementations§

Source§

impl BoxProcessorExt for BoxProcessor

Source§

fn from_fn<F, Fut>(f: F) -> BoxProcessor
where F: Fn(Exchange) -> Fut + Send + Sync + 'static, Fut: Future<Output = Result<Exchange, CamelError>> + Send + 'static,

Create a BoxProcessor from an async closure. Read more