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§

source

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.

source

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.

Implementors§

source§

impl<EM, M> ProgressReporter for MonitorTypedEventManager<EM, M>

source§

impl<EM, SP> ProgressReporter for CentralizedEventManager<EM, SP>

source§

impl<EMH, S> ProgressReporter for TcpEventManager<EMH, S>

source§

impl<EMH, S, SP> ProgressReporter for LlmpEventManager<EMH, S, SP>

source§

impl<EMH, S, SP> ProgressReporter for LlmpRestartingEventManager<EMH, S, SP>

source§

impl<EMH, S, SP> ProgressReporter for TcpRestartingEventManager<EMH, S, SP>

source§

impl<MT, S> ProgressReporter for SimpleEventManager<MT, S>

source§

impl<MT, S, SP> ProgressReporter for SimpleRestartingEventManager<MT, S, SP>

source§

impl<S> ProgressReporter for NopEventManager<S>