Struct mock_crash_reporter::ThrottleHook
source · pub struct ThrottleHook { /* private fields */ }
Expand description
Hook that can be used to yield control of the file_report
call to the caller. The caller can
control when file_report
calls complete by pulling from the mpsc::Receiver.
Implementations§
source§impl ThrottleHook
impl ThrottleHook
pub fn new( file_response: Result<FileReportResults, FilingError>, ) -> (Self, Receiver<CrashReport>)
Trait Implementations§
source§impl Hook for ThrottleHook
impl Hook for ThrottleHook
source§fn 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.
Auto Trait Implementations§
impl Freeze for ThrottleHook
impl !RefUnwindSafe for ThrottleHook
impl Send for ThrottleHook
impl Sync for ThrottleHook
impl Unpin for ThrottleHook
impl !UnwindSafe for ThrottleHook
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