#[non_exhaustive]pub enum Event {
Message(Inbound),
Unparsed(FixError),
LoggedOut {
text: Option<String>,
},
Disconnected(TransportError),
ReconnectFailed {
attempt: u32,
error: ConnectorError,
},
Reconnected {
attempt: u32,
},
Ended,
Gap {
expected: u64,
received: u64,
},
Skipped {
from: u64,
to: u64,
},
}Expand description
What happens on a session, in the order it happens.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Message(Inbound)
A message arrived.
Unparsed(FixError)
A message arrived that the library cannot read; it is skipped. Whether it is counted
and whether a reject (3) answers it, and with which tags, depends on the case: the
table Messages that cannot be used holds
every one. Not every message that cannot be used is reported with this event: one
ahead of its turn is reported as Event::Gap, and one behind its turn whose header
can be read is not reported when it is a repetition and ends the connection when it
is none. A business message reject (j) is never sent in answer.
LoggedOut
The server ended the session with a logout.
Disconnected(TransportError)
The connection was lost; the session tries to connect again.
ReconnectFailed
An attempt to connect again failed.
Reconnected
The session is logged on again over a new connection. Both sides count from one again, and the server has forgotten the subscriptions of the lost connection.
Ended
The session gave up connecting again and is over.
Gap
Messages of the server are missing and were asked for again.
Skipped
The server asked for messages again and was told to skip them; none is sent twice.