Skip to main content

Command

Trait Command 

Source
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§

Source

type Result: Send + Sync

The result type returned after successful command execution.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§