Skip to main content

Module capture

Module capture 

Source
Expand description

Bus capture adapter: the seam that converts dispatched bus messages into event store entries.

See README.md “Capture surface” and “Architecture” for the SPEC contract; the BusCaptureAdapter implements the dispatch-boundary side of that contract by consulting an EncoderRegistry allow-list and forwarding encoded entries to the crate::EventStoreWriter.

Re-exports§

pub use adapter::BusCaptureAdapter;
pub use adapter::CaptureError;
pub use builtins::PAYLOAD_TYPE_ACCOUNT_STATE;
pub use builtins::PAYLOAD_TYPE_FILL_REPORT;
pub use builtins::PAYLOAD_TYPE_ORDER_FILLED;
pub use builtins::PAYLOAD_TYPE_ORDER_STATUS_REPORT;
pub use builtins::PAYLOAD_TYPE_POSITION_STATUS_REPORT;
pub use builtins::PAYLOAD_TYPE_SUBMIT_ORDER;
pub use builtins::default_registry;
pub use builtins::encode_account_state;
pub use builtins::encode_fill_report;
pub use builtins::encode_order_filled;
pub use builtins::encode_order_status_report;
pub use builtins::encode_position_status_report;
pub use builtins::encode_submit_order;
pub use builtins::register_default;
pub use encoder::Encode;
pub use encoder::EncodeError;
pub use encoder::EncodedPayload;
pub use encoder::TypedEncoder;
pub use registry::EncoderRegistry;
pub use registry::HeadersExtractor;
pub use registry::TypedHeadersExtractor;

Modules§

adapter
The bus capture adapter.
builtins
Representative encoders for the SPEC’s allow-listed message surface.
encoder
Encoders that convert captured bus messages into canonical payload bytes.
registry
The bus capture allow-list.