Skip to main content

Module plugin

Module plugin 

Source
Expand description

Direct in-process host adapter for mln_plugin layer plugins.

Registers any mln_plugin::LayerPlugin directly on crate::RegistryBuilder::add_layer_plugin without crossing the C Plugin ABI, enabling the same plugin crate to run natively, on Wasm, and over the C ABI (mln_plugin_c).

Functionsยง

build_layer_type
Validates and initializes a LayerPlugin into a reusable &'static DynamicLayerType.
with_view
Borrows an engine View as an mln_plugin::View for the duration of f (useful in plugin unit tests).