camel-bean 0.6.2

Beans/Registry system for rust-camel
Documentation
1
2
3
4
5
6
7
8
9
use async_trait::async_trait;
use camel_api::{CamelError, Exchange};

#[async_trait]
pub trait BeanProcessor: Send + Sync {
    async fn call(&self, method: &str, exchange: &mut Exchange) -> Result<(), CamelError>;

    fn methods(&self) -> Vec<&'static str>;
}