brokapi_bcs/core/mod.rs
1//! The sans-io cores of the BCS connectors.
2//!
3//! A core is a state machine without sockets, tasks or clocks. It gets inbound frames and the
4//! current time, and it pushes events and queues outbound messages. The connectors in this crate run
5//! one core each ([`MdCore`] and [`UdCore`]) inside a pump task. You can also drive a core by hand,
6//! for a test or a replay of recorded frames: the trait [`brokapi_sansio::BrokerCore`] is the
7//! interface.
8
9pub mod md;
10pub mod ud;
11
12pub use md::{MdCore, SubState};
13pub use ud::{UdCore, UdFrame, UdRestFrame};