Skip to main content

Module console

Module console 

Source

Structs§

CommandInfo
A registered command’s name and description, as returned by CommandRegistry::list - e.g. for xr command:list to print.
CommandRegistry
Maps a command name to the handler that runs it - built fresh by whatever calls CommandRegistry::dispatch (typically the generated app’s own main.rs, via routes::console::commands()), not a process-wide static: exactly one process ever reads it, for exactly as long as that one xr <command> invocation runs, so there’s no cross-request sharing need the way larust-events’ listener registry or larust_http::route’s named-route registry have.

Traits§

Command
A named CLI command, run once, synchronously, in the same process that dispatched it - see this crate’s own module doc for the full comparison against larust_queue::Job.