Expand description
HostDispatch — handles reverse (plugin→host) RPC calls.
Routes host/* methods to the appropriate PluginHandle calls.
Traits§
- Host
Call Handler - Maps a host/* method name to the corresponding PluginHandle call. The actual PluginHandle type is provided by src-tauri, so this is a trait-based dispatch to avoid coupling plugin-host to src-tauri.
- Plugin
Event Sink - 宿主 → 插件的事件推送通道:把注册的回调经此通道以 JSON-RPC
通知(
plugin/*命名空间,无 id)推送给插件进程。
Functions§
- invalid_
params - Helper for creating “invalid params” errors.
- method_
not_ found - Helper for creating “method not found” errors.