pub struct StreamingParser<R: BufRead> { /* private fields */ }
Expand description
Streaming parser for memory-efficient processing
Implementations§
Source§impl<R: BufRead> StreamingParser<R>
impl<R: BufRead> StreamingParser<R>
pub fn new(reader: R, version: ERNVersion) -> Self
pub fn with_progress_callback<F>(self, callback: F) -> Self
pub fn with_chunk_size(self, size: usize) -> Self
pub fn with_max_memory(self, max: usize) -> Self
Sourcepub fn parse_header(&mut self) -> Result<MessageHeader, ParseError>
pub fn parse_header(&mut self) -> Result<MessageHeader, ParseError>
Parse the message header
Sourcepub fn stream_releases(&mut self) -> ReleaseIterator<'_, R> ⓘ
pub fn stream_releases(&mut self) -> ReleaseIterator<'_, R> ⓘ
Stream releases one at a time for memory efficiency
Sourcepub fn stream_resources(&mut self) -> ResourceIterator<'_, R> ⓘ
pub fn stream_resources(&mut self) -> ResourceIterator<'_, R> ⓘ
Stream resources one at a time
Sourcepub fn stream_parties(&mut self) -> PartyIterator<'_, R> ⓘ
pub fn stream_parties(&mut self) -> PartyIterator<'_, R> ⓘ
Stream parties
Sourcepub fn stream_deals(&mut self) -> DealIterator<'_, R> ⓘ
pub fn stream_deals(&mut self) -> DealIterator<'_, R> ⓘ
Stream deals
Auto Trait Implementations§
impl<R> Freeze for StreamingParser<R>where
R: Freeze,
impl<R> !RefUnwindSafe for StreamingParser<R>
impl<R> Send for StreamingParser<R>where
R: Send,
impl<R> !Sync for StreamingParser<R>
impl<R> Unpin for StreamingParser<R>where
R: Unpin,
impl<R> !UnwindSafe for StreamingParser<R>
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