pub trait RegisterCommand<R> {
// Required methods
fn info() -> &'static CommandInfo;
fn handler() -> CommandHandler<R>;
}Expand description
Target registration shape. Existing TUI commands adopt it group by group.
Required Methods§
fn info() -> &'static CommandInfo
fn handler() -> CommandHandler<R>
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".