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 validate_zero_length_record(&self, schema: &Schema) -> Result<(), Error>
pub fn validate_zero_length_record(&self, schema: &Schema) -> Result<(), Error>
Validate a zero-length record against schema requirements.
§Errors
Returns an error when the schema requires non-zero fixed bytes.
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>where
R: Freeze,
impl<R> RefUnwindSafe for RDWRecordReader<R>where
R: RefUnwindSafe,
impl<R> Send for RDWRecordReader<R>where
R: Send,
impl<R> Sync for RDWRecordReader<R>where
R: Sync,
impl<R> Unpin for RDWRecordReader<R>where
R: Unpin,
impl<R> UnsafeUnpin for RDWRecordReader<R>where
R: UnsafeUnpin,
impl<R> UnwindSafe for RDWRecordReader<R>where
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