Skip to main content

Module context

Module context 

Source
Expand description

PluginContext —— 插件的唯一出口(put / ask / notify / write_log)。

纪律(P-H2 审核修订):不再暴露 event_engine() 访问器——插件不许自装 handler 绕过 worker/熔断/背压;收信口(on_mail)与发信口(ctx)各只有一个。

Structs§

PluginContext
发放到插件的上下文(on_init 传入;Clone 供插件自存)。