dofus-framework 0.1.16

This crate contains modules and functions that help sustain a dofus emulator binary application
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
use crate::ddd::application::repository_factory::RepositoryFactory;
use crate::io::tcp::tcp_client_action::TcpClientAction;
use thiserror::Error;

#[derive(Error, Debug)]
pub enum ActionHandlerError {}

pub trait ActionHandler {
    fn handle<T: RepositoryFactory>(
        &self,
        action: TcpClientAction,
        repository_factory: &T,
    ) -> Result<(), ActionHandlerError>;
}