| 7 | |
| 8 | #[async_trait] |
| 9 | pub trait Processor<Input, Output> { |
| 10 | |
| 11 | async fn init(&mut self); |
| 12 | |
| 13 | /// if return ProcResult::Dispatch |
| 14 | /// and Dispatcher is Partition must set batch_key |
| 15 | async fn handle_message(&mut self, msg: Input) -> ProcResult<Output>; |
| 16 | |
| 17 | async fn terminate(&mut self); |
| 18 | } |
| 19 | |
| 20 | |
| 21 |
nothing calls this directly
no outgoing calls
no test coverage detected