Trait libafl::events::ProgressReporter
source · pub trait ProgressReporter: EventFirer{
// Provided methods
fn maybe_report_progress(
&mut self,
state: &mut Self::State,
monitor_timeout: Duration
) -> Result<(), Error> { ... }
fn report_progress(&mut self, state: &mut Self::State) -> Result<(), Error> { ... }
}
Expand description
ProgressReporter
report progress to the broker.
Provided Methods§
sourcefn maybe_report_progress(
&mut self,
state: &mut Self::State,
monitor_timeout: Duration
) -> Result<(), Error>
fn maybe_report_progress( &mut self, state: &mut Self::State, monitor_timeout: Duration ) -> Result<(), Error>
Given the last time, if monitor_timeout
seconds passed, send off an info/monitor/heartbeat message to the broker.
Returns the new last
time (so the old one, unless monitor_timeout
time has passed and monitor have been sent)
Will return an crate::Error
, if the stats could not be sent.
sourcefn report_progress(&mut self, state: &mut Self::State) -> Result<(), Error>
fn report_progress(&mut self, state: &mut Self::State) -> Result<(), Error>
Send off an info/monitor/heartbeat message to the broker.
Will return an crate::Error
, if the stats could not be sent.
Object Safety§
This trait is not object safe.