Expand description
The application callback interface — the async equivalent of the seven classic QuickFIX callbacks.
Structs§
- Channel
Application - The
Applicationhalf ofevent_channel: it forwards the notification callbacks onto the channel and accepts everything else with the trait defaults. Construct it only viaevent_channel. - DoNot
Send - Returned by
to_appto veto an outgoing (or resent) message.
Enums§
- Application
Error - Returned by
from_admin/from_appto influence session behavior. - Session
Event - A protocol event surfaced by
event_channel. Every variant carries theSessionIdit happened on, so one receiver can serve many sessions — match on the id to demultiplex.
Traits§
- Application
- Implemented by users of the engine. All callbacks run on the session’s task: a slow callback delays that session (only), exactly like the single-threaded session model of the reference engines.
Functions§
- event_
channel - Bridge the callback interface to a tokio channel: returns an
Applicationto hand tocrate::Engine::start, plus a receiver you drain from your own task orselect!loop. This is the tokio-native alternative to implementingApplicationby hand — inbound events and your outboundcrate::SessionHandlesends live in one place, with no callback reentrancy hazard.