Expand description
Host-side bridge between the plug-in C ABI and an engine.
Provides actor and strategy adapters that wrap a cdylib’s vtable + handle
as a DataActor / Strategy an engine can register, plus the
host-side HostVTable that routes plug-in
callbacks through the engine’s cache, risk, event, msgbus, and timer
paths. Used by both the live node and the backtest engine via the
crate’s host feature.
§Layout
actor:PluginActorAdapterfor plug-in actors.strategy:PluginStrategyAdapterfor plug-in strategies.controller:PluginControllerAdapterfor plug-in controllers.host: host-sideHostVTableconstruction with engine callback routing.registry: the per-instance opaque context the host attaches to each plug-in instance so host callbacks can be attributed to the calling adapter.configured: config-resolved adapter construction from a loaded plug-in manifest, used by engine startup code.
Execution command structs and their boundary-owned handles live at
crate::surfaces::commands and are re-exported below for the
historical nautilus_plugin::bridge::* import path.
Re-exports§
pub use actor::PluginActorAdapter;pub use configured::ConfiguredControllerEntry;pub use configured::ConfiguredPluginEntry;pub use configured::configured_entry;pub use configured::register_manifest_custom_data;pub use controller::PluginControllerAdapter;pub use custom_data::PluginCustomDataValue;pub use custom_data::register_custom_data_from_manifest;pub use host::controller_host_vtable;pub use host::host_vtable;pub use host::plugin_loader;pub use registry::HostContextInner;pub use strategy::PluginStrategyAdapter;pub use crate::surfaces::commands::CancelAllOrdersCommand;pub use crate::surfaces::commands::CancelAllOrdersHandle;pub use crate::surfaces::commands::CancelOrderCommand;pub use crate::surfaces::commands::CancelOrderHandle;pub use crate::surfaces::commands::CancelOrdersCommand;pub use crate::surfaces::commands::CancelOrdersHandle;pub use crate::surfaces::commands::CloseAllPositionsCommand;pub use crate::surfaces::commands::CloseAllPositionsHandle;pub use crate::surfaces::commands::ClosePositionCommand;pub use crate::surfaces::commands::ClosePositionHandle;pub use crate::surfaces::commands::ModifyOrderCommand;pub use crate::surfaces::commands::ModifyOrderHandle;pub use crate::surfaces::commands::QueryAccountCommand;pub use crate::surfaces::commands::QueryAccountHandle;pub use crate::surfaces::commands::QueryOrderCommand;pub use crate::surfaces::commands::QueryOrderHandle;pub use crate::surfaces::commands::SubmitOrderCommand;pub use crate::surfaces::commands::SubmitOrderHandle;pub use crate::surfaces::commands::SubmitOrderListCommand;pub use crate::surfaces::commands::SubmitOrderListHandle;
Modules§
- actor
- Host-side adapter that wraps a plug-in actor cdylib as a
DataActor. - configured
- Safe wrappers for config-driven plug-in registration and adapter construction.
- controller
- Host-side adapter that owns a plug-in controller instance.
- custom_
data - Host-side custom-data manifest walk.
- host
- Host-side
HostVTablethat routes plug-in callbacks through live adapters. - registry
- Per-instance opaque context attached to every plug-in strategy or actor.
- strategy
- Host-side adapter that wraps a plug-in strategy cdylib as a
Strategy.