Struct libafl::mutators::scheduled::StdScheduledMutator
source · pub struct StdScheduledMutator<I, MT, S>where
MT: MutatorsTuple<I, S>,
S: HasRand,{ /* private fields */ }
Expand description
A Mutator
that schedules one of the embedded mutations on each call.
Implementations§
source§impl<I, MT, S> StdScheduledMutator<I, MT, S>where
MT: MutatorsTuple<I, S>,
S: HasRand,
impl<I, MT, S> StdScheduledMutator<I, MT, S>where
MT: MutatorsTuple<I, S>,
S: HasRand,
sourcepub fn new(mutations: MT) -> Self
pub fn new(mutations: MT) -> Self
Create a new StdScheduledMutator
instance specifying mutations
sourcepub fn with_max_stack_pow(mutations: MT, max_stack_pow: u64) -> Self
pub fn with_max_stack_pow(mutations: MT, max_stack_pow: u64) -> Self
Create a new StdScheduledMutator
instance specifying mutations and the maximun number of iterations
Trait Implementations§
source§impl<I, MT, S> ComposedByMutations<I, MT, S> for StdScheduledMutator<I, MT, S>where
MT: MutatorsTuple<I, S>,
S: HasRand,
impl<I, MT, S> ComposedByMutations<I, MT, S> for StdScheduledMutator<I, MT, S>where
MT: MutatorsTuple<I, S>,
S: HasRand,
source§impl<I, MT, S> Debug for StdScheduledMutator<I, MT, S>where
MT: MutatorsTuple<I, S>,
S: HasRand,
impl<I, MT, S> Debug for StdScheduledMutator<I, MT, S>where
MT: MutatorsTuple<I, S>,
S: HasRand,
source§impl<I, MT, S> Mutator<I, S> for StdScheduledMutator<I, MT, S>where
MT: MutatorsTuple<I, S>,
S: HasRand,
impl<I, MT, S> Mutator<I, S> for StdScheduledMutator<I, MT, S>where
MT: MutatorsTuple<I, S>,
S: HasRand,
source§impl<I, MT, S> ScheduledMutator<I, MT, S> for StdScheduledMutator<I, MT, S>where
MT: MutatorsTuple<I, S>,
S: HasRand,
impl<I, MT, S> ScheduledMutator<I, MT, S> for StdScheduledMutator<I, MT, S>where
MT: MutatorsTuple<I, S>,
S: HasRand,
source§fn iterations(&self, state: &mut S, _: &I) -> u64
fn iterations(&self, state: &mut S, _: &I) -> u64
Compute the number of iterations used to apply stacked mutations
source§fn scheduled_mutate(
&mut self,
state: &mut S,
input: &mut I,
stage_idx: i32
) -> Result<MutationResult, Error>
fn scheduled_mutate(
&mut self,
state: &mut S,
input: &mut I,
stage_idx: i32
) -> Result<MutationResult, Error>
New default implementation for mutate.
Implementations must forward mutate() to this method
Auto Trait Implementations§
impl<I, MT, S> RefUnwindSafe for StdScheduledMutator<I, MT, S>where
I: RefUnwindSafe,
MT: RefUnwindSafe,
S: RefUnwindSafe,
impl<I, MT, S> Send for StdScheduledMutator<I, MT, S>where
I: Send,
MT: Send,
S: Send,
impl<I, MT, S> Sync for StdScheduledMutator<I, MT, S>where
I: Sync,
MT: Sync,
S: Sync,
impl<I, MT, S> Unpin for StdScheduledMutator<I, MT, S>where
I: Unpin,
MT: Unpin,
S: Unpin,
impl<I, MT, S> UnwindSafe for StdScheduledMutator<I, MT, S>where
I: UnwindSafe,
MT: UnwindSafe,
S: UnwindSafe,
Blanket Implementations§
source§impl<Tail, T> Prepend<T> for Tail
impl<Tail, T> Prepend<T> for Tail
§type PreprendResult = 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)
fn prepend(self, value: T) -> (T, <Tail as Prepend<T>>::PreprendResult)
Prepend a value to this tuple, returning a new tuple with prepended value.