pub trait Command:
Send
+ Sync
+ 'static {
type Args: Send + 'static;
type Output: Send + 'static;
type Error: Send + 'static;
const NAME: &'static str;
}Expand description
A typed application command contract.
NAME is used only for diagnostics. Commands are registered and resolved by
their Rust type, so arguments and results never pass through serialization.
Required Associated Constants§
Required Associated Types§
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".