pub trait Command: Send + Sync {
type Result: Send + Sync;
}Expand description
Marker trait for CQRS commands.
Commands represent an intent to change the system state. Each command should have a single handler.
Required Associated Types§
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".