Expand description
Common imports re-exported for convenience.
Macros§
Structs§
- CliProgress
- Display command progress as a terminal progress bar.
- Command
Event Counts - Aggregate counts of command lifecycle events.
- Command
Events - Collect and query command lifecycle events.
- Command
Mediator - A mediator between the
CommandRunner,WorkerandCliProgressservices. - Command
Progress - Snapshot of command queue progress.
- Command
Registry - Map request types to their handlers.
- Command
Runner - Queue and execute commands across a pool of workers.
- Worker
- A worker that executes commands
- Worker
Pool - Manage a dynamic set of
Workerinstances.
Enums§
- Command
Status - Current state of a queued command.
- Event
Kind - Lifecycle stage of a command.
- Instruction
- An instruction sent to a
Worker. - Queue
Error - Errors returned by
CommandRegistry::resolve. - Runner
Status - Current state of the
CommandRunner.
Traits§
- Executable
- A request that can be executed by a handler.
- Execute
- Handle execution of a request.
- ICommand
- A command that pairs a request with its handler for execution.
- ICommand
Info - Associated types that define a complete command system.
- IEvent
- A command lifecycle event carrying the request and optional success data.
- IFailure
- Marker trait for command failure enums.
- IHandler
- Marker trait for command handler enums generated by
define_commands_server. - IRequest
- Marker trait for serializable command request enums.
- ISuccess
- Marker trait for serializable command success enums.
- Register
Handlers - Describe how to populate a
CommandRegistryfor a command system.