Skip to main content

Reporter

Trait Reporter 

Source
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§

Source

fn report(&mut self, finding: &VerifiedFinding) -> Result<(), ReportError>

Report a single finding.

Source

fn finish(&mut self) -> Result<(), ReportError>

Finalize the report and flush buffered bytes.

Implementors§