Skip to main content

Module handler

Module handler 

Source
Expand description

Handler trait for conduit commands (sync and async).

ConduitHandler is implemented by #[conduit::command] for both synchronous and asynchronous functions. The plugin dispatches via this trait and branches on HandlerResponse automatically.

Structs§

HandlerContext
Context passed from the plugin to #[command] handlers.

Enums§

HandlerResponse
Response from a conduit command handler.

Traits§

ConduitHandler
Trait for conduit command handlers, supporting both sync and async.