Struct puffin::fuzzer::libafl_setup::RunClientBuilder
source · struct RunClientBuilder<'harness, H, C, R, SC, EM, F, OF, OT, CS, MT, I>where
I: Input,{Show 13 fields
config: FuzzerConfig,
harness_fn: &'harness mut H,
existing_state: Option<StdState<I, C, R, SC>>,
rand: Option<R>,
objective_corpus: Option<SC>,
corpus: Option<C>,
scheduler: Option<CS>,
event_manager: EM,
observers: Option<OT>,
feedback: Option<F>,
objective: Option<OF>,
initial_inputs: Option<Vec<(I, &'static str)>>,
mutations: Option<MT>,
}
Fields§
§config: FuzzerConfig
§harness_fn: &'harness mut H
§existing_state: Option<StdState<I, C, R, SC>>
§rand: Option<R>
§objective_corpus: Option<SC>
§corpus: Option<C>
§scheduler: Option<CS>
§event_manager: EM
§observers: Option<OT>
§feedback: Option<F>
§objective: Option<OF>
§initial_inputs: Option<Vec<(I, &'static str)>>
§mutations: Option<MT>
Implementations§
source§impl<'harness, H, C, R, SC, EM, F, OF, OT, CS, MT, I> RunClientBuilder<'harness, H, C, R, SC, EM, F, OF, OT, CS, MT, I>where
StdState<I, C, R, SC>: UsesInput<Input = I>,
I: Input + HasLen,
C: Corpus + UsesInput<Input = I>,
R: Rand,
SC: Corpus + UsesInput<Input = I>,
H: FnMut(&I) -> ExitKind,
CS: Scheduler + UsesState<State = StdState<I, C, R, SC>>,
F: Feedback<StdState<I, C, R, SC>>,
OF: Feedback<StdState<I, C, R, SC>>,
OT: ObserversTuple<StdState<I, C, R, SC>> + Serialize + DeserializeOwned,
EM: EventFirer + EventRestarter + EventManager<TimeoutExecutor<InProcessExecutor<'harness, H, OT, StdState<I, C, R, SC>>>, StdFuzzer<CS, F, OF, OT>> + ProgressReporter + UsesState<State = StdState<I, C, R, SC>>,
MT: MutatorsTuple<I, StdState<I, C, R, SC>>,
<EM as UsesState>::State: HasClientPerfMonitor + HasMetadata + HasExecutions,
impl<'harness, H, C, R, SC, EM, F, OF, OT, CS, MT, I> RunClientBuilder<'harness, H, C, R, SC, EM, F, OF, OT, CS, MT, I>where
StdState<I, C, R, SC>: UsesInput<Input = I>,
I: Input + HasLen,
C: Corpus + UsesInput<Input = I>,
R: Rand,
SC: Corpus + UsesInput<Input = I>,
H: FnMut(&I) -> ExitKind,
CS: Scheduler + UsesState<State = StdState<I, C, R, SC>>,
F: Feedback<StdState<I, C, R, SC>>,
OF: Feedback<StdState<I, C, R, SC>>,
OT: ObserversTuple<StdState<I, C, R, SC>> + Serialize + DeserializeOwned,
EM: EventFirer + EventRestarter + EventManager<TimeoutExecutor<InProcessExecutor<'harness, H, OT, StdState<I, C, R, SC>>>, StdFuzzer<CS, F, OF, OT>> + ProgressReporter + UsesState<State = StdState<I, C, R, SC>>,
MT: MutatorsTuple<I, StdState<I, C, R, SC>>,
<EM as UsesState>::State: HasClientPerfMonitor + HasMetadata + HasExecutions,
fn new( config: FuzzerConfig, harness_fn: &'harness mut H, existing_state: Option<StdState<I, C, R, SC>>, event_manager: EM, ) -> Self
fn with_rand(self, rand: R) -> Self
fn with_corpus(self, corpus: C) -> Self
fn with_objective_corpus(self, objective_corpus: SC) -> Self
fn with_scheduler(self, scheduler: CS) -> Self
fn with_feedback(self, feedback: F) -> Self
fn with_objective(self, objective: OF) -> Self
fn with_observers(self, observers: OT) -> Self
fn with_initial_inputs(self, initial_inputs: Vec<(I, &'static str)>) -> Self
fn with_mutations(self, mutations: MT) -> Self
fn run_client(self) -> Result<(), Error>
source§impl<'harness, 'a, H, SC, C, R, EM, OF, CS, MT, I> RunClientBuilder<'harness, H, C, R, SC, EM, CombinedFeedback<MapFeedback<DifferentIsNovel, HitcountsMapObserver<StdMapObserver<'a, u8, false>>, MaxReducer, StdState<I, C, R, SC>, u8>, TimeFeedback, LogicEagerOr, StdState<I, C, R, SC>>, OF, (HitcountsMapObserver<StdMapObserver<'a, u8, false>>, (TimeObserver, ())), CS, MT, I>where
StdState<I, C, R, SC>: UsesInput<Input = I>,
I: Input + HasLen,
C: Corpus + UsesInput<Input = I> + Debug,
R: Rand,
SC: Corpus + UsesInput<Input = I> + Debug,
H: FnMut(&I) -> ExitKind,
OF: Feedback<StdState<I, C, R, SC>>,
CS: Scheduler + UsesState<State = StdState<I, C, R, SC>>,
EM: EventFirer + EventRestarter + EventManager<TimeoutExecutor<InProcessExecutor<'harness, H, (HitcountsMapObserver<StdMapObserver<'a, u8, false>>, (TimeObserver, ())), StdState<I, C, R, SC>>>, StdFuzzer<IndexesLenTimeMinimizerScheduler<QueueScheduler<StdState<I, C, R, SC>>>, CombinedFeedback<MapFeedback<DifferentIsNovel, HitcountsMapObserver<StdMapObserver<'a, u8, false>>, MaxReducer, StdState<I, C, R, SC>, u8>, TimeFeedback, LogicEagerOr, StdState<I, C, R, SC>>, OF, (HitcountsMapObserver<StdMapObserver<'a, u8, false>>, (TimeObserver, ()))>> + ProgressReporter + UsesState<State = StdState<I, C, R, SC>>,
MT: MutatorsTuple<I, StdState<I, C, R, SC>>,
<EM as UsesState>::State: HasClientPerfMonitor + HasMetadata + HasExecutions,
impl<'harness, 'a, H, SC, C, R, EM, OF, CS, MT, I> RunClientBuilder<'harness, H, C, R, SC, EM, CombinedFeedback<MapFeedback<DifferentIsNovel, HitcountsMapObserver<StdMapObserver<'a, u8, false>>, MaxReducer, StdState<I, C, R, SC>, u8>, TimeFeedback, LogicEagerOr, StdState<I, C, R, SC>>, OF, (HitcountsMapObserver<StdMapObserver<'a, u8, false>>, (TimeObserver, ())), CS, MT, I>where
StdState<I, C, R, SC>: UsesInput<Input = I>,
I: Input + HasLen,
C: Corpus + UsesInput<Input = I> + Debug,
R: Rand,
SC: Corpus + UsesInput<Input = I> + Debug,
H: FnMut(&I) -> ExitKind,
OF: Feedback<StdState<I, C, R, SC>>,
CS: Scheduler + UsesState<State = StdState<I, C, R, SC>>,
EM: EventFirer + EventRestarter + EventManager<TimeoutExecutor<InProcessExecutor<'harness, H, (HitcountsMapObserver<StdMapObserver<'a, u8, false>>, (TimeObserver, ())), StdState<I, C, R, SC>>>, StdFuzzer<IndexesLenTimeMinimizerScheduler<QueueScheduler<StdState<I, C, R, SC>>>, CombinedFeedback<MapFeedback<DifferentIsNovel, HitcountsMapObserver<StdMapObserver<'a, u8, false>>, MaxReducer, StdState<I, C, R, SC>, u8>, TimeFeedback, LogicEagerOr, StdState<I, C, R, SC>>, OF, (HitcountsMapObserver<StdMapObserver<'a, u8, false>>, (TimeObserver, ()))>> + ProgressReporter + UsesState<State = StdState<I, C, R, SC>>,
MT: MutatorsTuple<I, StdState<I, C, R, SC>>,
<EM as UsesState>::State: HasClientPerfMonitor + HasMetadata + HasExecutions,
fn create_feedback_observers( &self, ) -> (CombinedFeedback<MapFeedback<DifferentIsNovel, HitcountsMapObserver<StdMapObserver<'a, u8, false>>, MaxReducer, StdState<I, C, R, SC>, u8>, TimeFeedback, LogicEagerOr, StdState<I, C, R, SC>>, (HitcountsMapObserver<StdMapObserver<'a, u8, false>>, (TimeObserver, ())))
Auto Trait Implementations§
impl<'harness, H, C, R, SC, EM, F, OF, OT, CS, MT, I> Freeze for RunClientBuilder<'harness, H, C, R, SC, EM, F, OF, OT, CS, MT, I>
impl<'harness, H, C, R, SC, EM, F, OF, OT, CS, MT, I> !RefUnwindSafe for RunClientBuilder<'harness, H, C, R, SC, EM, F, OF, OT, CS, MT, I>
impl<'harness, H, C, R, SC, EM, F, OF, OT, CS, MT, I> !Send for RunClientBuilder<'harness, H, C, R, SC, EM, F, OF, OT, CS, MT, I>
impl<'harness, H, C, R, SC, EM, F, OF, OT, CS, MT, I> !Sync for RunClientBuilder<'harness, H, C, R, SC, EM, F, OF, OT, CS, MT, I>
impl<'harness, H, C, R, SC, EM, F, OF, OT, CS, MT, I> Unpin for RunClientBuilder<'harness, H, C, R, SC, EM, F, OF, OT, CS, MT, I>
impl<'harness, H, C, R, SC, EM, F, OF, OT, CS, MT, I> !UnwindSafe for RunClientBuilder<'harness, H, C, R, SC, EM, F, OF, OT, CS, MT, I>
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§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.