Struct puffin::fuzzer::feedback::MinimizingFeedback

source ·
pub struct MinimizingFeedback<SC, PT>
where SC: HasCorpus + HasRand + HasMaxSize + UsesInput<Input = Trace<PT>> + State, PT: ProtocolTypes + 'static,
{ enabled: bool, pub(crate) phantom: PhantomData<SC>, }
Expand description

Custom feedback for minimizing traces after execution and prior to adding them to the corpus.

Fields§

§enabled: bool§phantom: PhantomData<SC>

Implementations§

source§

impl<SC, PT> MinimizingFeedback<SC, PT>
where SC: HasCorpus + HasRand + HasMaxSize + UsesInput<Input = Trace<PT>> + State, PT: ProtocolTypes + 'static,

source

pub fn new(with_truncation: bool) -> Self

Trait Implementations§

source§

impl<SC, PT> Clone for MinimizingFeedback<SC, PT>
where SC: HasCorpus + HasRand + HasMaxSize + UsesInput<Input = Trace<PT>> + State + Clone, PT: ProtocolTypes + 'static + Clone,

source§

fn clone(&self) -> MinimizingFeedback<SC, PT>

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<SC, PT> Debug for MinimizingFeedback<SC, PT>
where SC: HasCorpus + HasRand + HasMaxSize + UsesInput<Input = Trace<PT>> + State + Debug, PT: ProtocolTypes + 'static + Debug,

source§

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

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

impl<'de, SC, PT> Deserialize<'de> for MinimizingFeedback<SC, PT>
where SC: HasCorpus + HasRand + HasMaxSize + UsesInput<Input = Trace<PT>> + State, PT: ProtocolTypes + 'static,

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<SC, PT> Feedback<SC> for MinimizingFeedback<SC, PT>
where SC: HasCorpus + HasRand + HasMaxSize + UsesInput<Input = Trace<PT>> + State, PT: ProtocolTypes + 'static,

source§

fn append_metadata<OT>( &mut self, _state: &mut SC, _observers: &OT, testcase: &mut Testcase<Trace<PT>>, ) -> Result<(), Error>
where OT: ObserversTuple<SC>,

Append to the testcase the generated metadata in case of a new corpus item

source§

fn is_interesting<EM, OT>( &mut self, _: &mut SC, _: &mut EM, _: &Trace<PT>, _: &OT, _: &ExitKind, ) -> Result<bool, Error>
where EM: EventFirer<State = SC>, OT: ObserversTuple<SC>,

is_interesting return if an input is worth the addition to the corpus
source§

fn is_interesting_introspection<EM, OT>( &mut self, _: &mut SC, _: &mut EM, _: &SC::Input, _: &OT, _: &ExitKind, ) -> Result<bool, Error>
where EM: EventFirer<State = SC>, OT: ObserversTuple<SC>,

Returns if the result of a run is interesting and the value input should be stored in a corpus. It also keeps track of introspection stats.
source§

fn discard_metadata( &mut self, _state: &mut SC, _input: &SC::Input, ) -> Result<(), Error>

Discard the stored metadata in case that the testcase is not added to the corpus
§

fn init_state(&mut self, _state: &mut S) -> Result<(), Error>

Initializes the feedback state. This method is called after that the State is created.
source§

impl<SC, PT> Named for MinimizingFeedback<SC, PT>
where SC: HasCorpus + HasRand + HasMaxSize + UsesInput<Input = Trace<PT>> + State, PT: ProtocolTypes + 'static,

source§

fn name(&self) -> &str

Provide the name of this element.
source§

impl<SC, PT> Serialize for MinimizingFeedback<SC, PT>
where SC: HasCorpus + HasRand + HasMaxSize + UsesInput<Input = Trace<PT>> + State, PT: ProtocolTypes + 'static,

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<SC, PT> Freeze for MinimizingFeedback<SC, PT>

§

impl<SC, PT> RefUnwindSafe for MinimizingFeedback<SC, PT>
where SC: RefUnwindSafe,

§

impl<SC, PT> Send for MinimizingFeedback<SC, PT>
where SC: Send,

§

impl<SC, PT> Sync for MinimizingFeedback<SC, PT>
where SC: Sync,

§

impl<SC, PT> Unpin for MinimizingFeedback<SC, PT>
where SC: Unpin,

§

impl<SC, PT> UnwindSafe for MinimizingFeedback<SC, PT>
where SC: UnwindSafe,

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
§

impl<T> CloneAny for T
where T: Any + Clone + Send + Sync,

§

fn clone_any(&self) -> Box<dyn CloneAny>

§

fn clone_any_send(&self) -> Box<dyn CloneAny + Send>

§

fn clone_any_sync(&self) -> Box<dyn CloneAny + Sync>

§

fn clone_any_send_sync(&self) -> Box<dyn CloneAny + Sync + Send>

source§

impl<T> CloneToUninit for T
where T: Clone,

source§

unsafe fn clone_to_uninit(&self, dst: *mut T)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dst. Read more
source§

impl<T> DynClone for T
where T: Clone,

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

source§

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

source§

impl<T> ToOwned for T
where T: Clone,

source§

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 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> DebugAny for T
where T: Any + Debug,

source§

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

§

impl<T> MaybeHasScalabilityMonitor for T

§

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