pub struct Tokenizer { /* private fields */ }Expand description
Splits a framed FIX message into its fields.
Implementations§
Source§impl Tokenizer
impl Tokenizer
Constructs a Tokenizer with additional (non-standard) length tags.
The supplied values are additive, they never replace the standard set. Tag 0 is reserved as the malformed-field sentinel and is ignored.
Sourcepub fn tokenize(&self, bytes: Bytes) -> Result<RawMessage, TokenizeError>
pub fn tokenize(&self, bytes: Bytes) -> Result<RawMessage, TokenizeError>
Tokenises exactly one complete FIX message into a RawMessage.
The bytes must contain a single well-framed message.
Frame-level issues surface as TokenizeError, while malformed
fields inside a valid frame are indexed under MALFORMED_TAG.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Tokenizer
impl RefUnwindSafe for Tokenizer
impl Send for Tokenizer
impl Sync for Tokenizer
impl Unpin for Tokenizer
impl UnsafeUnpin for Tokenizer
impl UnwindSafe for Tokenizer
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more