Expand description
Reading FIX tag-value messages.
Two stages: raw_message frames one message out of a byte stream,
checking BeginString, BodyLength and CheckSum without looking inside;
Deserializer then walks that frame’s body, handing typed values to the
generated message types. Both borrow from the input rather than copying it.
Failures are classified by what the session must do about them - see
DeserializeErrorKind.
Structs§
- Deserializer
- Reads typed FIX values out of a framed
RawMessage, field by field. - Field
Cursor - An independent, borrowed cursor over field tags and values.
- RawMessage
- One structurally valid FIX message framed out of a byte stream by
raw_message, borrowing from that stream - no bytes are copied.
Enums§
- Deserialize
Error Kind - A failed deserialization, classified by what the session must do about it.
- Garbled
Reason - Why a message could not be framed or parsed as FIX at all.
- Logout
Reason - Cause of a
DeserializeErrorKind::Logout- a well-formed message that the session must answer with a Logout(35=5) and disconnect. - RawMessage
Error - Why
raw_messagecould not frame a message.
Functions§
- frame_
len - Total length of the frame starting at
bytes[0], known as soon as itsBeginString(8)andBodyLength(9)have arrived: the two framing fields,BodyLength(9)bytes of body and theCheckSum(10)trailer. - raw_
message - Frame one message out of
bytes, returning the unconsumed remainder alongside it. Zero-copy: theRawMessageborrows frombytes.