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