pub trait Command:
Serialize
+ for<'de> Deserialize<'de>
+ Send
+ Sync
+ 'static { }Expand description
Marker trait for state-changing requests.
Commands represent intent to mutate game state. They travel from client to server and are validated before execution.
§Bounds
Requires Serialize + Deserialize + Send + Sync + 'static so commands
can cross thread and serialization boundaries.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".