Struct loom::fuzz::Builder

source ·
pub struct Builder {
    pub max_threads: usize,
    pub max_memory: usize,
    pub max_branches: usize,
    pub max_permutations: Option<usize>,
    pub max_duration: Option<Duration>,
    pub checkpoint_file: Option<PathBuf>,
    pub checkpoint_interval: usize,
    pub runtime: Runtime,
    pub log: bool,
    /* private fields */
}
Expand description

Configure a fuzz execution.

Fields

max_threads: usize

Max number of threads to check as part of the execution. This should be set as low as possible.

max_memory: usize

Maximum amount of memory that can be consumed by the associated metadata.

max_branches: usize

Maximum number of thread switches per permutation.

max_permutations: Option<usize>

Maximum number of permutations to explore.

max_duration: Option<Duration>

Maximum amount of time to spend on a fuzz

checkpoint_file: Option<PathBuf>

When doing an exhaustive fuzz, uses the file to store and load the fuzz progress

checkpoint_interval: usize

How often to write the checkpoint file

runtime: Runtime

What runtime to use

log: bool

Log execution output to stdout.

Implementations

Create a new Builder instance with default values.

Set the checkpoint file.

Fuzz the closure.

Trait Implementations

Formats the value using the given formatter. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.