Trait mock_crash_reporter::Hook
source · pub trait Hook: Send + Sync {
// Required method
fn file_report(
&self,
report: CrashReport,
) -> BoxFuture<'static, Result<FileReportResults, FilingError>>;
}
Expand description
A call hook that can be used to inject responses into the CrashReporter service.
Required Methods§
sourcefn file_report(
&self,
report: CrashReport,
) -> BoxFuture<'static, Result<FileReportResults, FilingError>>
fn file_report( &self, report: CrashReport, ) -> BoxFuture<'static, Result<FileReportResults, FilingError>>
Describes what the file_report call will return.