Skip to main content

RuntimeCommand

Trait RuntimeCommand 

Source
pub trait RuntimeCommand {
    // Required method
    fn name(&self) -> &CommandName;
}
Expand description

Minimal runtime command contract.

Required Methods§

Source

fn name(&self) -> &CommandName

Returns the stable command name used for registration and dispatch.

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§