Skip to main content

Module host_dispatch

Module host_dispatch 

Source
Expand description

HostDispatch — handles reverse (plugin→host) RPC calls.

Routes host/* methods to the appropriate PluginHandle calls.

Traits§

HostCallHandler
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.
PluginEventSink
宿主 → 插件的事件推送通道:把注册的回调经此通道以 JSON-RPC 通知(plugin/* 命名空间,无 id)推送给插件进程。

Functions§

invalid_params
Helper for creating “invalid params” errors.
method_not_found
Helper for creating “method not found” errors.