Hook

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

Source

fn file_report( &self, report: CrashReport, ) -> BoxFuture<'static, Result<FileReportResults, FilingError>>

Describes what the file_report call will return.

Implementors§

Source§

impl Hook for ThrottleHook

Source§

impl<F> Hook for F
where F: Fn(CrashReport) -> Result<FileReportResults, FilingError> + Send + Sync,