pub struct RDWRecordReader<R>where
R: Read,{ /* private fields */ }Expand description
RDW (Record Descriptor Word) record reader for variable-length records.
Implementations§
Source§impl<R> RDWRecordReader<R>where
R: Read,
impl<R> RDWRecordReader<R>where
R: Read,
Sourcepub fn new(input: R, strict_mode: bool) -> RDWRecordReader<R>
pub fn new(input: R, strict_mode: bool) -> RDWRecordReader<R>
Create a new RDW record reader.
Sourcepub fn read_record(&mut self) -> Result<Option<RDWRecord>, Error>
pub fn read_record(&mut self) -> Result<Option<RDWRecord>, Error>
Read the next RDW record.
§Errors
Returns an error if the record cannot be read due to I/O errors or framing issues.
Sourcepub fn record_count(&self) -> u64
pub fn record_count(&self) -> u64
Number of RDW records consumed from the stream.
Trait Implementations§
Auto Trait Implementations§
impl<R> Freeze for RDWRecordReader<R>
impl<R> RefUnwindSafe for RDWRecordReader<R>where
BufReader<R>: RefUnwindSafe,
impl<R> Send for RDWRecordReader<R>
impl<R> Sync for RDWRecordReader<R>
impl<R> Unpin for RDWRecordReader<R>
impl<R> UnsafeUnpin for RDWRecordReader<R>where
BufReader<R>: UnsafeUnpin,
impl<R> UnwindSafe for RDWRecordReader<R>where
BufReader<R>: UnwindSafe,
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