Enum hyperpom::corpus::LoadTestcaseAction
source · pub enum LoadTestcaseAction {
New,
NewAndReset,
Keep,
KeepAndReset,
Invalid,
InvalidAndReset,
}
Expand description
Determines which action should be taken after a testcase has been loaded by the fuzzer. Because a given testcase can be reused across multiple iterations, it’s possible to tell the fuzzer whether we want to keep it and use the remaining data for the next iteration or discard it and get a new one.
Variants
New
Once the current testcase is loaded, we discard it and get a new one for the next iteration. Doesn’t reset the fuzzer from the snapshots.
NewAndReset
Once the current testcase is loaded, we discard it and get a new one for the next iteration. Resets the fuzzer using the snapshots.
Keep
If there is still data in the current testcase that can be used for the next iteration, we keep it. Doesn’t reset the fuzzer from the snapshots.
KeepAndReset
If there is still data in the current testcase that can be used for the next iteration, we keep it. Resets the fuzzer using the snapshots.
Invalid
The testcase is invalid, a new one will be fetched and loaded right away. Doesn’t reset the fuzzer from the snapshots.
InvalidAndReset
The testcase is invalid, a new one will be fetched and loaded right away. Resets the fuzzer using the snapshots.
Trait Implementations
sourceimpl Clone for LoadTestcaseAction
impl Clone for LoadTestcaseAction
sourcefn clone(&self) -> LoadTestcaseAction
fn clone(&self) -> LoadTestcaseAction
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresourceimpl Debug for LoadTestcaseAction
impl Debug for LoadTestcaseAction
sourceimpl Hash for LoadTestcaseAction
impl Hash for LoadTestcaseAction
sourceimpl Ord for LoadTestcaseAction
impl Ord for LoadTestcaseAction
sourcefn cmp(&self, other: &LoadTestcaseAction) -> Ordering
fn cmp(&self, other: &LoadTestcaseAction) -> Ordering
1.21.0 · sourcefn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
1.21.0 · sourcefn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
1.50.0 · sourcefn clamp(self, min: Self, max: Self) -> Selfwhere
Self: Sized + PartialOrd<Self>,
fn clamp(self, min: Self, max: Self) -> Selfwhere
Self: Sized + PartialOrd<Self>,
sourceimpl PartialEq<LoadTestcaseAction> for LoadTestcaseAction
impl PartialEq<LoadTestcaseAction> for LoadTestcaseAction
sourcefn eq(&self, other: &LoadTestcaseAction) -> bool
fn eq(&self, other: &LoadTestcaseAction) -> bool
sourceimpl PartialOrd<LoadTestcaseAction> for LoadTestcaseAction
impl PartialOrd<LoadTestcaseAction> for LoadTestcaseAction
sourcefn partial_cmp(&self, other: &LoadTestcaseAction) -> Option<Ordering>
fn partial_cmp(&self, other: &LoadTestcaseAction) -> Option<Ordering>
1.0.0 · sourcefn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
self
and other
) and is used by the <=
operator. Read more