1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
pub mod command;
pub mod response;
pub mod serialization;
pub mod flow;
pub type Command = command::command_table::Command;
pub type CommandParser = serialization::command_parser::CommandParser;
pub type Response = response::response::Response;
pub type ResponseEncoder = serialization::response_encoder::ResponseEncoder;
pub type FlowType = flow::flow_type::FlowType;
pub type RetFlowType = flow::flow_type::RetFlowType;
pub type Error = Box<dyn std::error::Error + Send + Sync>;
pub type Result<T> = std::result::Result<T, Error>;
pub fn kyoto_network_to_machine(machine_handler: &mut dyn flow::flow_handler::FlowHandler,
flow: FlowType) -> crate::Result<RetFlowType> {
machine_handler.handle_flow(flow)
}
pub fn kyoto_machine_to_warehouse(server: &mut dyn flow::flow_handler::FlowHandler,
flow: FlowType) -> crate::Result<RetFlowType> {
server.handle_flow(flow)
}