pub struct StreamingProcessor<R: Read> { /* private fields */ }Expand description
Streaming SARIF processor with callback support
This allows processing SARIF files with custom logic applied to each run
Implementations§
Source§impl<R: Read> StreamingProcessor<R>
impl<R: Read> StreamingProcessor<R>
Sourcepub fn with_memory_limit(self, max_memory_mb: usize) -> Self
pub fn with_memory_limit(self, max_memory_mb: usize) -> Self
Set maximum memory usage limit in MB
Sourcepub fn process_with_callback<F>(
&mut self,
callback: F,
) -> ParseResult<StreamingStats>
pub fn process_with_callback<F>( &mut self, callback: F, ) -> ParseResult<StreamingStats>
Process SARIF file with a callback for each run
Sourcepub fn filter_results<F>(&mut self, predicate: F) -> ParseResult<Vec<Result>>
pub fn filter_results<F>(&mut self, predicate: F) -> ParseResult<Vec<Result>>
Process and collect all results matching a predicate
Sourcepub fn stats(&self) -> &StreamingStats
pub fn stats(&self) -> &StreamingStats
Get current processing statistics
Auto Trait Implementations§
impl<R> Freeze for StreamingProcessor<R>where
R: Freeze,
impl<R> RefUnwindSafe for StreamingProcessor<R>where
R: RefUnwindSafe,
impl<R> Send for StreamingProcessor<R>where
R: Send,
impl<R> Sync for StreamingProcessor<R>where
R: Sync,
impl<R> Unpin for StreamingProcessor<R>where
R: Unpin,
impl<R> UnwindSafe for StreamingProcessor<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