pub struct SensorReportBuilder { /* private fields */ }Expand description
Builder for creating SensorReports.
Implementations§
Source§impl SensorReportBuilder
impl SensorReportBuilder
pub fn new(tool: ToolInfo, started_at: String) -> Self
pub fn ended_at(self, ended_at: String, duration_ms: u64) -> Self
pub fn baseline(self, available: bool, reason: Option<String>) -> Self
pub fn max_findings(self, limit: usize) -> Self
pub fn artifact(self, path: String, artifact_type: String) -> Self
Sourcepub fn build(self, report: &PerfgateReport) -> SensorReport
pub fn build(self, report: &PerfgateReport) -> SensorReport
Build a single report from a PerfgateReport.
Sourcepub fn build_error(self, message: &str, stage: &str, code: &str) -> SensorReport
pub fn build_error(self, message: &str, stage: &str, code: &str) -> SensorReport
Build a report representing a tool error.
Sourcepub fn build_aggregated(
self,
outcomes: &[BenchOutcome],
) -> (SensorReport, String)
pub fn build_aggregated( self, outcomes: &[BenchOutcome], ) -> (SensorReport, String)
Build an aggregated report from multiple PerfgateReports.
Auto Trait Implementations§
impl Freeze for SensorReportBuilder
impl RefUnwindSafe for SensorReportBuilder
impl Send for SensorReportBuilder
impl Sync for SensorReportBuilder
impl Unpin for SensorReportBuilder
impl UnsafeUnpin for SensorReportBuilder
impl UnwindSafe for SensorReportBuilder
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