Struct libafl::events::simple::SimpleEventManager [−][src]
Expand description
A simple, single-threaded event manager that just logs
Implementations
Creates a new SimpleEventManager
.
Trait Implementations
Send off an Event::Log
event to the broker
This is a shortcut for EventFirer::fire
with Event::Log
as argument. Read more
fn serialize_observers<OT, S>(
&mut self,
observers: &OT
) -> Result<Vec<u8>, Error> where
OT: ObserversTuple<I, S> + Serialize,
fn serialize_observers<OT, S>(
&mut self,
observers: &OT
) -> Result<Vec<u8>, Error> where
OT: ObserversTuple<I, S> + Serialize,
Serialize all observers for this type and manager
Get the configuration
impl<E, I, MT, S, Z> EventProcessor<E, I, S, Z> for SimpleEventManager<I, MT> where
I: Input,
MT: Monitor,
impl<E, I, MT, S, Z> EventProcessor<E, I, S, Z> for SimpleEventManager<I, MT> where
I: Input,
MT: Monitor,
Lookup for incoming events and process them. Return the number of processes events or an error Read more
fn deserialize_observers<OT>(
&mut self,
observers_buf: &[u8]
) -> Result<OT, Error> where
OT: ObserversTuple<I, S> + DeserializeOwned,
fn deserialize_observers<OT>(
&mut self,
observers_buf: &[u8]
) -> Result<OT, Error> where
OT: ObserversTuple<I, S> + DeserializeOwned,
Deserialize all observers for this type and manager
For restarting event managers, implement a way to forward state to their next peers.
Block until we are safe to exit.
The id of this manager. For Multiprocessed EventManager
s,
each client sholud have a unique ids. Read more
fn maybe_report_progress<S>(
&mut self,
state: &mut S,
last_report_time: Duration,
monitor_timeout: Duration
) -> Result<Duration, Error> where
S: HasExecutions + HasClientPerfMonitor,
fn maybe_report_progress<S>(
&mut self,
state: &mut S,
last_report_time: Duration,
monitor_timeout: Duration
) -> Result<Duration, Error> where
S: HasExecutions + HasClientPerfMonitor,
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. Read more
impl<E, I, MT, S, Z> EventManager<E, I, S, Z> for SimpleEventManager<I, MT> where
I: Input,
MT: Monitor,
Auto Trait Implementations
impl<I, MT> RefUnwindSafe for SimpleEventManager<I, MT> where
I: RefUnwindSafe,
MT: RefUnwindSafe,
impl<I, MT> Send for SimpleEventManager<I, MT> where
I: Send,
MT: Send,
impl<I, MT> Sync for SimpleEventManager<I, MT> where
I: Sync,
MT: Sync,
impl<I, MT> Unpin for SimpleEventManager<I, MT> where
I: Unpin,
MT: Unpin,
impl<I, MT> UnwindSafe for SimpleEventManager<I, MT> where
I: UnwindSafe,
MT: UnwindSafe,
Blanket Implementations
Mutably borrows from an owned value. Read more
type PreprendResult = Tail
type PreprendResult = Tail
The Resulting TupleList
, of an Prepend::prepend()
call,
including the prepended entry. Read more