Expand description
Engine-instance lifecycle across the FFI boundary: the factory registry,
the per-handler EngineContext, create/destroy entry points, and the
FfiPtr pointer helpers. Per-method rust__handler__* callbacks live in
crate::handler; both modules share the safety contract documented there.
Structs§
- Engine
Context - Per-handler Rust-side state owned through
Box::into_raw. The C++RustHandlerBasekeeps avoid*to one of these.
Functions§
- register_
engine_ factory - Install
factoryon the process-wide engine registry. Call this once from the plugin’srust__plugin_init; later calls are ignored. - register_
handlerton - Install
handlertonas the process-wide engine-level handlerton. - rust__
create_ ⚠engine - Allocate an
EngineContext; null if no factory or the factory panics - rust__
destroy_ ⚠engine - Drop a context returned by
rust__create_engine
Type Aliases§
- Engine
Factory - Factory closure that produces a fresh engine instance per opened table