Skip to main content

Module plugin

Module plugin 

Source
Expand description

Plugin trait and registration API.

Every server feature — built-in or external — implements the Plugin trait. Plugins register event handlers and commands during on_enable.

Structs§

CommandBuilder
Fluent builder for registering a command with typed arguments.
CommandEntry
A registered command entry.
PluginMetadata
Identity metadata for a plugin.
PluginRegistrar
Plugin registration interface for events, commands, and systems.
PluginSystemBuilder
Fluent builder for registering a system via a plugin.
VariantBuilder
Builder for a single variant of a polymorphic command.

Traits§

Plugin
A server plugin that registers event handlers and lifecycle hooks.

Type Aliases§

CommandHandler
Handler function type for commands with typed arguments.