Skip to main content

extract_frame

Function extract_frame 

Source
pub fn extract_frame(buf: &mut BytesMut) -> Frame
Expand description

Extract the next complete FIX message from buf, consuming it (and any preceding garbage). Returns Incomplete when the buffer holds no full message yet. Garbled frames (bad BodyLength structure) are discarded and scanning resumes at the next 8=.