pub struct LogReader { /* private fields */ }Expand description
Reads the messages in a FIX log from incrementally fed bytes.
Implementations§
Source§impl LogReader
impl LogReader
Sourcepub fn new(dialect: Dialect<'_>, separator: Option<u8>) -> Self
pub fn new(dialect: Dialect<'_>, separator: Option<u8>) -> Self
A reader for dialect.
Each message’s separator is detected from the bytes after its
BeginString, unless separator is given. Only detection reads ^A.
Sourcepub fn next_record(&mut self) -> Option<LogRecord>
pub fn next_record(&mut self) -> Option<LogRecord>
Consumes and returns the next record, or None until more bytes are
fed.
Trait Implementations§
Auto Trait Implementations§
impl Forget for LogReader
impl Freeze for LogReader
impl Move for LogReader
impl RefUnwindSafe for LogReader
impl Send for LogReader
impl Sync for LogReader
impl Unpin for LogReader
impl UnsafeUnpin for LogReader
impl UnwindSafe for LogReader
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