Skip to main content

Module plugin_policy

Module plugin_policy 

Source
Expand description

Plugin execution policy and adapter contracts. 插件执行策略与适配器合同。

PluginMode, PluginSource and PluginManifest live in declaration because registration declarations carry them; this module imports them from there instead of re-exporting them, so the plugin namespace does not become a second home for the same item. PluginMode、PluginSource 与 PluginManifest 住在 declaration——注册声明持有 它们;本模块从那里导入而不是再导出,插件命名空间因此不会成为同一个 item 的第二个家。

Structs§

PluginPolicy
Host policy for selecting which linked plugin manifests may participate. 宿主选择已链接插件是否参与的策略。

Enums§

PluginAdapter
Where plugin code executes. Native code is trusted process code; the other two modes are explicit isolation choices for untrusted extensions. 插件代码的执行隔离方式。Native 与宿主同进程;另外两种是明确的隔离选项。

Traits§

PluginRuntime
Generic execution backend for a plugin artifact. 插件工件的泛型执行后端。