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,

source

fn new( config: FuzzerConfig, harness_fn: &'harness mut H, existing_state: Option<StdState<I, C, R, SC>>, event_manager: EM, ) -> Self

source

fn with_rand(self, rand: R) -> Self

source

fn with_corpus(self, corpus: C) -> Self

source

fn with_objective_corpus(self, objective_corpus: SC) -> Self

source

fn with_scheduler(self, scheduler: CS) -> Self

source

fn with_feedback(self, feedback: F) -> Self

source

fn with_objective(self, objective: OF) -> Self

source

fn with_observers(self, observers: OT) -> Self

source

fn with_initial_inputs(self, initial_inputs: Vec<(I, &'static str)>) -> Self

source

fn with_mutations(self, mutations: MT) -> Self

source

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,

source

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>
where EM: Freeze, R: Freeze, SC: Freeze, C: Freeze, CS: Freeze, OT: Freeze, F: Freeze, OF: Freeze, MT: Freeze,

§

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>
where EM: Unpin, R: Unpin, SC: Unpin, C: Unpin, CS: Unpin, OT: Unpin, F: Unpin, OF: Unpin, MT: Unpin, I: Unpin,

§

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> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> AsAny for T
where T: 'static,

source§

fn as_any(&self) -> &(dyn Any + 'static)

source§

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

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

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

source§

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

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

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

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.

§

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

§

type PreprendResult = Tail

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

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, U> TryFrom<U> for T
where U: Into<T>,

source§

type Error = Infallible

The type returned in the event of a conversion error.
source§

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

Performs the conversion.
source§

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

source§

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

The type returned in the event of a conversion error.
source§

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

Performs the conversion.
§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

§

fn vzip(self) -> V

§

impl<T> MaybeHasScalabilityMonitor for T

§

impl<T> UnsafeAny for T
where T: Any,