pub trait Reporter: Send {
// Required methods
fn report(&mut self, finding: &VerifiedFinding) -> Result<(), ReportError>;
fn finish(&mut self) -> Result<(), ReportError>;
}Expand description
Common trait for all finding reporters.
Required Methods§
Sourcefn report(&mut self, finding: &VerifiedFinding) -> Result<(), ReportError>
fn report(&mut self, finding: &VerifiedFinding) -> Result<(), ReportError>
Report a single finding.
Sourcefn finish(&mut self) -> Result<(), ReportError>
fn finish(&mut self) -> Result<(), ReportError>
Finalize the report and flush buffered bytes.