dofus_framework/dofus/realm/application/
action_handler.rs

1use crate::ddd::application::repository_factory::RepositoryFactory;
2use crate::io::tcp::tcp_client_action::TcpClientAction;
3use thiserror::Error;
4
5#[derive(Error, Debug)]
6pub enum ActionHandlerError {}
7
8pub trait ActionHandler {
9    fn handle<T: RepositoryFactory>(
10        &self,
11        action: TcpClientAction,
12        repository_factory: &T,
13    ) -> Result<(), ActionHandlerError>;
14}