Expand description
Live-node plug-in support.
The public exports mirror nautilus_plugin::bridge so existing
nautilus_live::plugin::* imports keep working. The crate-local runtime
pieces below load configured plug-ins, build node adapters, and manage
plug-in controller lifecycle state.
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.
Structs§
- Cancel
AllOrders Command - Cancel-all-orders command. Mirrors the arguments to
Strategy::cancel_all_orders. - Cancel
AllOrders Handle - Boundary-owned wrapper that lets
CancelAllOrdersCommandcross the cdylib FFI boundary by reference. - Cancel
Order Command - Cancel-order command. Mirrors the arguments to
Strategy::cancel_order. - Cancel
Order Handle - Boundary-owned wrapper that lets
CancelOrderCommandcross the cdylib FFI boundary by reference. - Cancel
Orders Command - Cancel-orders (batched) command. Mirrors the arguments to
Strategy::cancel_orders. - Cancel
Orders Handle - Boundary-owned wrapper that lets
CancelOrdersCommandcross the cdylib FFI boundary by reference. - Close
AllPositions Command - Close-all-positions command. Mirrors the arguments to
Strategy::close_all_positions. - Close
AllPositions Handle - Boundary-owned wrapper that lets
CloseAllPositionsCommandcross the cdylib FFI boundary by reference. - Close
Position Command - Close-position command. Mirrors the arguments to
Strategy::close_position. - Close
Position Handle - Boundary-owned wrapper that lets
ClosePositionCommandcross the cdylib FFI boundary by reference. - Configured
Controller Entry - Controller entry copied from a loaded manifest.
- Host
Context Inner - Inner payload behind the opaque
*const HostContextthe host hands every plug-in instance. - Modify
Order Command - Modify-order command. Mirrors the arguments to
Strategy::modify_order. - Modify
Order Handle - Boundary-owned wrapper that lets
ModifyOrderCommandcross the cdylib FFI boundary by reference. - Plugin
Actor Adapter - Adapts a plug-in actor (vtable + handle from a cdylib) into a host-side
DataActorthe live node can register and dispatch into. - Plugin
Controller Adapter - Adapts a plug-in controller (vtable + handle from a cdylib) into a host-owned runtime component.
- Plugin
Custom Data Value - Host-side trait-object adapter for a plug-in custom-data value.
- Plugin
Strategy Adapter - Adapts a plug-in strategy (vtable + handle from a cdylib) into a host-side
Strategythe live node can register and route through the production cache, risk, and event pipeline. - Query
Account Command - Query-account command. Mirrors the arguments to
Strategy::query_account. - Query
Account Handle - Boundary-owned wrapper that lets
QueryAccountCommandcross the cdylib FFI boundary by reference. - Query
Order Command - Query-order command. Mirrors the arguments to
Strategy::query_order. - Query
Order Handle - Boundary-owned wrapper that lets
QueryOrderCommandcross the cdylib FFI boundary by reference. - Submit
Order Command - Submit-order command. Mirrors the arguments to
Strategy::submit_order. - Submit
Order Handle - Boundary-owned wrapper that lets
SubmitOrderCommandcross the cdylib FFI boundary by reference. - Submit
Order List Command - Submit-order-list command. Mirrors the arguments to
Strategy::submit_order_list. - Submit
Order List Handle - Boundary-owned wrapper that lets
SubmitOrderListCommandcross the cdylib FFI boundary by reference.
Enums§
- Configured
Plugin Entry - Config-resolved plug-in component entry.
Functions§
- configured_
entry - Resolves an actor, strategy, or controller entry from a loaded manifest by type name.
- controller_
host_ vtable - Returns the process-wide
ControllerHostVTablefor plug-in controllers. - host_
vtable - Returns the process-wide
HostVTableconfigured for the live node. - plugin_
loader - Returns a
PluginLoaderpre-bound to the host vtable fromhost_vtable. - register_
custom_ data_ from_ manifest - Walks a
ValidatedPluginManifestand registers a JSON deserializer for every custom-data type the plug-in publishes. - register_
manifest_ custom_ data - Registers every custom data type declared by a loaded manifest.