Skip to main content

RegisterCommand

Trait RegisterCommand 

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

Dyn Compatibility§

This trait is not dyn compatible.

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

Implementors§