Struct libafl::events::simple::SimpleEventManager[][src]

pub struct SimpleEventManager<I, S, ST> where
    I: Input,
    ST: Stats
{ /* fields omitted */ }

A simple, single-threaded event manager that just logs

Implementations

impl<I, S, ST> SimpleEventManager<I, S, ST> where
    I: Input,
    ST: Stats
[src]

pub fn new(stats: ST) -> Self[src]

Creates a new SimpleEventManager.

Trait Implementations

impl<I: Clone, S: Clone, ST: Clone> Clone for SimpleEventManager<I, S, ST> where
    I: Input,
    ST: Stats
[src]

fn clone(&self) -> SimpleEventManager<I, S, ST>[src]

Returns a copy of the value. Read more

fn clone_from(&mut self, source: &Self)1.0.0[src]

Performs copy-assignment from source. Read more

impl<I: Debug, S: Debug, ST: Debug> Debug for SimpleEventManager<I, S, ST> where
    I: Input,
    ST: Stats
[src]

fn fmt(&self, f: &mut Formatter<'_>) -> Result[src]

Formats the value using the given formatter. Read more

impl<I, S, ST> EventManager<I, S> for SimpleEventManager<I, S, ST> where
    I: Input,
    ST: Stats
[src]

fn process<CS, E, OT>(
    &mut self,
    state: &mut S,
    _executor: &mut E,
    _scheduler: &CS
) -> Result<usize, Error> where
    CS: CorpusScheduler<I, S>,
    E: Executor<I> + HasObservers<OT>,
    OT: ObserversTuple
[src]

Fire an Event Lookup for incoming events and process them. Return the number of processes events or an error Read more

fn fire(&mut self, _state: &mut S, event: Event<I>) -> Result<(), Error>[src]

Send off an event to the broker

fn serialize_observers<OT>(&mut self, observers: &OT) -> Result<Vec<u8>, Error> where
    OT: ObserversTuple
[src]

Serialize all observers for this type and manager

fn deserialize_observers<OT>(
    &mut self,
    observers_buf: &[u8]
) -> Result<OT, Error> where
    OT: ObserversTuple
[src]

Deserialize all observers for this type and manager

fn on_restart(&mut self, _state: &mut S) -> Result<(), Error>[src]

For restarting event managers, implement a way to forward state to their next peers.

fn await_restart_safe(&mut self)[src]

Block until we are safe to exit.

Auto Trait Implementations

impl<I, S, ST> RefUnwindSafe for SimpleEventManager<I, S, ST> where
    I: RefUnwindSafe,
    S: RefUnwindSafe,
    ST: RefUnwindSafe

impl<I, S, ST> Send for SimpleEventManager<I, S, ST> where
    I: Send,
    S: Send,
    ST: Send

impl<I, S, ST> Sync for SimpleEventManager<I, S, ST> where
    I: Sync,
    S: Sync,
    ST: Sync

impl<I, S, ST> Unpin for SimpleEventManager<I, S, ST> where
    I: Unpin,
    S: Unpin,
    ST: Unpin

impl<I, S, ST> UnwindSafe for SimpleEventManager<I, S, ST> where
    I: UnwindSafe,
    S: UnwindSafe,
    ST: UnwindSafe

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

pub fn type_id(&self) -> TypeId[src]

Gets the TypeId of self. Read more

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

pub fn borrow(&self) -> &T[src]

Immutably borrows from an owned value. Read more

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

pub fn borrow_mut(&mut self) -> &mut T[src]

Mutably borrows from an owned value. Read more

impl<T> From<T> for T[src]

pub fn from(t: T) -> T[src]

Performs the conversion.

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

pub fn into(self) -> U[src]

Performs the conversion.

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

pub fn to_owned(&self) -> T[src]

Creates owned data from borrowed data, usually by cloning. Read more

pub fn clone_into(&self, target: &mut T)[src]

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

Uses borrowed data to replace owned data, usually by cloning. Read more

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]

Performs the conversion.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>[src]

Performs the conversion.