Skip to main content

Module core

Module core 

Expand description

The sans-io cores of the BCS connectors.

A core is a state machine without sockets, tasks or clocks. It gets inbound frames and the current time, and it pushes events and queues outbound messages. The connectors in this crate run one core each (MdCore and UdCore) inside a pump task. You can also drive a core by hand, for a test or a replay of recorded frames: the trait [brokapi_sansio::BrokerCore] is the interface.

Modules§

md
Market-data sans-io core.
ud
User-data sans-io core.

Structs§

MdCore
Sans-io market data core of the BCS market data WebSocket.
UdCore
Sans-io user data core: order statuses, fills and portfolio updates from the WebSocket channels.

Enums§

SubState
The state of one subscription as the core sees it.
UdFrame
A frame for the user data core: a WebSocket push or a REST answer.
UdRestFrame
The answer of a REST call, given to the user data core by hand.