pub struct Decoder<'a> { /* private fields */ }Expand description
Zero-copy FIX message decoder.
The decoder parses FIX messages from a byte buffer, extracting fields as references to the original data without copying.
Implementations§
Source§impl<'a> Decoder<'a>
impl<'a> Decoder<'a>
Sourcepub const fn new(input: &'a [u8]) -> Decoder<'a>
pub const fn new(input: &'a [u8]) -> Decoder<'a>
Creates a new decoder for the given input buffer.
§Arguments
input- The FIX message bytes to decode
Sourcepub const fn with_checksum_validation(self, validate: bool) -> Decoder<'a>
pub const fn with_checksum_validation(self, validate: bool) -> Decoder<'a>
Sets whether to validate checksums during decoding.
§Arguments
validate- Whether to validate checksums
Sourcepub fn decode(&mut self) -> Result<RawMessage<'a>, DecodeError>
pub fn decode(&mut self) -> Result<RawMessage<'a>, DecodeError>
Sourcepub fn next_field(&mut self) -> Option<FieldRef<'a>>
pub fn next_field(&mut self) -> Option<FieldRef<'a>>
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for Decoder<'a>
impl<'a> RefUnwindSafe for Decoder<'a>
impl<'a> Send for Decoder<'a>
impl<'a> Sync for Decoder<'a>
impl<'a> Unpin for Decoder<'a>
impl<'a> UnwindSafe for Decoder<'a>
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