Struct libafl::mutators::scheduled::StdScheduledMutator[][src]

pub struct StdScheduledMutator<I, MT, R, S> where
    I: Input,
    MT: MutatorsTuple<I, S>,
    R: Rand,
    S: HasRand<R>, 
{ /* fields omitted */ }

A Mutator that schedules one of the embedded mutations on each call.

Implementations

impl<I, MT, R, S> StdScheduledMutator<I, MT, R, S> where
    I: Input,
    MT: MutatorsTuple<I, S>,
    R: Rand,
    S: HasRand<R>, 
[src]

pub fn new(mutations: MT) -> Self[src]

Create a new StdScheduledMutator instance specifying mutations

Trait Implementations

impl<I, MT, R, S> ComposedByMutations<I, MT, S> for StdScheduledMutator<I, MT, R, S> where
    I: Input,
    MT: MutatorsTuple<I, S>,
    R: Rand,
    S: HasRand<R>, 
[src]

fn mutations(&self) -> &MT[src]

Get the mutations

fn mutations_mut(&mut self) -> &mut MT[src]

Get the mutations (mut)

impl<I, MT, R, S> Debug for StdScheduledMutator<I, MT, R, S> where
    I: Input,
    MT: MutatorsTuple<I, S>,
    R: Rand,
    S: HasRand<R>, 
[src]

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

Formats the value using the given formatter. Read more

impl<I, MT, R, S> Mutator<I, S> for StdScheduledMutator<I, MT, R, S> where
    I: Input,
    MT: MutatorsTuple<I, S>,
    R: Rand,
    S: HasRand<R>, 
[src]

fn mutate(
    &mut self,
    state: &mut S,
    input: &mut I,
    stage_idx: i32
) -> Result<MutationResult, Error>
[src]

Mutate a given input

fn post_exec(
    &mut self,
    _state: &mut S,
    _stage_idx: i32,
    _corpus_idx: Option<usize>
) -> Result<(), Error>
[src]

Post-process given the outcome of the execution

impl<I, MT, R, S> ScheduledMutator<I, MT, S> for StdScheduledMutator<I, MT, R, S> where
    I: Input,
    MT: MutatorsTuple<I, S>,
    R: Rand,
    S: HasRand<R>, 
[src]

fn iterations(&self, state: &mut S, _: &I) -> u64[src]

Compute the number of iterations used to apply stacked mutations

fn schedule(&self, state: &mut S, _: &I) -> usize[src]

Get the next mutation to apply

fn scheduled_mutate(
    &mut self,
    state: &mut S,
    input: &mut I,
    stage_idx: i32
) -> Result<MutationResult, Error>
[src]

New default implementation for mutate Implementations must forward mutate() to this method Read more

Auto Trait Implementations

impl<I, MT, R, S> RefUnwindSafe for StdScheduledMutator<I, MT, R, S> where
    I: RefUnwindSafe,
    MT: RefUnwindSafe,
    R: RefUnwindSafe,
    S: RefUnwindSafe

impl<I, MT, R, S> Send for StdScheduledMutator<I, MT, R, S> where
    I: Send,
    MT: Send,
    R: Send,
    S: Send

impl<I, MT, R, S> Sync for StdScheduledMutator<I, MT, R, S> where
    I: Sync,
    MT: Sync,
    R: Sync,
    S: Sync

impl<I, MT, R, S> Unpin for StdScheduledMutator<I, MT, R, S> where
    I: Unpin,
    MT: Unpin,
    R: Unpin,
    S: Unpin

impl<I, MT, R, S> UnwindSafe for StdScheduledMutator<I, MT, R, S> where
    I: UnwindSafe,
    MT: UnwindSafe,
    R: UnwindSafe,
    S: 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, 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.