appletheia_application/
command.rs1pub mod command_dispatch_error;
2pub mod command_dispatcher;
3pub mod command_failure_report;
4pub mod command_handler;
5pub mod command_hash;
6pub mod command_hasher;
7pub mod command_name;
8pub mod command_name_owned;
9pub mod command_name_owned_error;
10pub mod command_selector;
11pub mod command_worker;
12pub mod command_worker_error;
13pub mod default_command_dispatcher;
14pub mod default_command_hasher;
15pub mod default_command_worker;
16
17pub use command_dispatch_error::CommandDispatchError;
18pub use command_dispatcher::CommandDispatcher;
19pub use command_failure_report::CommandFailureReport;
20pub use command_handler::CommandHandler;
21pub use command_hash::{CommandHash, CommandHashError};
22pub use command_hasher::CommandHasher;
23pub use command_hasher::CommandHasherError;
24pub use command_name::CommandName;
25pub use command_name_owned::CommandNameOwned;
26pub use command_name_owned_error::CommandNameOwnedError;
27pub use command_selector::CommandSelector;
28pub use command_worker::CommandWorker;
29pub use command_worker_error::CommandWorkerError;
30pub use default_command_dispatcher::DefaultCommandDispatcher;
31pub use default_command_hasher::DefaultCommandHasher;
32pub use default_command_worker::DefaultCommandWorker;
33
34use serde::Serialize;
35use serde::de::DeserializeOwned;
36
37pub trait Command: Serialize + DeserializeOwned + Send + 'static {
38 const NAME: CommandName;
39}