Skip to main content

Module kernel

Module kernel 

Source
Expand description

算子:vtable 抽象、全局注册表、端口表与契约。

Structs§

Contract
A kernel’s port contract: payload-type constraints plus required side packets.
KernelInstance
一个节点持有的算子实例。Drop 时回调 C 侧 destroy(RAII)。
KernelReg
KernelVTable
算子的函数指针表(布局与 include/flow.h 的 LMFlowKernelVTable 一致)。 ctx/contract 参数在 C 侧是 LMFlowContext*/LMFlowContract*,此处用 *mut c_void 以免模块间循环依赖;ffi 层负责转换。
PortTable
端口表:把 YAML 的端口声明整理成「序号 ↔ 名字 ↔ (tag,index)」三向查询。

Enums§

KernelLanguage

Functions§

lookup
register
register_with_language
registered_names