Enum libafl::events::Event

source ·
pub enum Event<I>where
    I: Input,
{ NewTestcase { input: I, observers_buf: Option<Vec<u8>>, exit_kind: ExitKind, corpus_size: usize, client_config: EventConfig, time: Duration, executions: usize, }, UpdateExecStats { time: Duration, executions: usize, phantom: PhantomData<I>, }, UpdateUserStats { name: String, value: UserStats, phantom: PhantomData<I>, }, Objective { objective_size: usize, }, Log { severity_level: LogSeverity, message: String, phantom: PhantomData<I>, }, CustomBuf { buf: Vec<u8>, tag: String, }, }
Expand description

Events sent around in the library

Variants§

§

NewTestcase

Fields

§input: I

The input for the new testcase

§observers_buf: Option<Vec<u8>>

The state of the observers when this testcase was found

§exit_kind: ExitKind

The exit kind

§corpus_size: usize

The new corpus size of this client

§client_config: EventConfig

The client config for this observers/testcase combination

§time: Duration

The time of generation of the event

§executions: usize

The executions of this client

A fuzzer found a new testcase. Rejoice!

§

UpdateExecStats

Fields

§time: Duration

The time of generation of the Event

§executions: usize

The executions of this client

New stats event to monitor.

§

UpdateUserStats

Fields

§name: String

Custom user monitor name

§value: UserStats

Custom user monitor value

New user stats event to monitor.

§

Objective

Fields

§objective_size: usize

Objective corpus size

A new objective was found

§

Log

Fields

§severity_level: LogSeverity

the severity level

§message: String

The message

§phantom: PhantomData<I>

PhantomData

Write a new log

§

CustomBuf

Fields

§buf: Vec<u8>

The buffer

§tag: String

Tag of this buffer

Sends a custom buffer to other clients

Trait Implementations§

source§

impl<I> Clone for Event<I>where
    I: Input + Clone,

source§

fn clone(&self) -> Event<I>

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl<I> Debug for Event<I>where
    I: Input + Debug,

source§

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

Formats the value using the given formatter. Read more
source§

impl<'de, I> Deserialize<'de> for Event<I>where
    I: Input + DeserializeOwned,

source§

fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
    __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
source§

impl<I> Serialize for Event<I>where
    I: Input + DeserializeOwned,

source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>where
    __S: Serializer,

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations§

§

impl<I> RefUnwindSafe for Event<I>where
    I: RefUnwindSafe,

§

impl<I> Send for Event<I>where
    I: Send,

§

impl<I> Sync for Event<I>where
    I: Sync,

§

impl<I> Unpin for Event<I>where
    I: Unpin,

§

impl<I> UnwindSafe for Event<I>where
    I: UnwindSafe,

Blanket Implementations§

source§

impl<T> Any for Twhere
    T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere
    T: ?Sized,

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere
    T: ?Sized,

const: unstable · source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

const: unstable · source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for Twhere
    U: From<T>,

const: unstable · source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<Tail, T> Prepend<T> for Tail

§

type PreprendResult = Tail

The Resulting TupleList, of an Prepend::prepend() call, including the prepended entry.
source§

fn prepend(self, value: T) -> (T, <Tail as Prepend<T>>::PreprendResult)

Prepend a value to this tuple, returning a new tuple with prepended value.
source§

impl<T> Serialize for Twhere
    T: Serialize + ?Sized,

source§

fn erased_serialize(&self, serializer: &mut dyn Serializer) -> Result<Ok, Error>

source§

impl<T> ToOwned for Twhere
    T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

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

fn clone_into(&self, target: &mut T)

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

impl<T, U> TryFrom<U> for Twhere
    U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
const: unstable · source§

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

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere
    U: TryFrom<T>,

§

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

The type returned in the event of a conversion error.
const: unstable · source§

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

Performs the conversion.
source§

impl<T> DeserializeOwned for Twhere
    T: for<'de> Deserialize<'de>,