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