Struct libafl::corpus::ondisk::OnDiskCorpus[][src]

pub struct OnDiskCorpus<I> where
    I: Input
{ /* fields omitted */ }
Expand description

A corpus able to store testcases to disk, and load them from disk, when they are being used.

Implementations

Creates the OnDiskCorpus. Will error, if std::fs::create_dir_all() failed for dir_path.

Creates the OnDiskCorpus specifying the type of Metadata to be saved to disk. Will error, if std::fs::create_dir_all() failed for dir_path.

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Returns the number of elements

Add an entry to the corpus and return its index

Replaces the testcase at the given idx

Removes an entry from the corpus, returning it if it was present.

Get by id

Current testcase scheduled

Current testcase scheduled (mut)

Returns true, if no elements are in this corpus yet

Formats the value using the given formatter. Read more

Returns the “default value” for a type. Read more

Deserialize this value from the given Serde deserializer. Read more

Serialize this value into the given Serde serializer. 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

Performs the conversion.

Performs the conversion.

The Resulting TupleList, of an Prepend::prepend() call, including the prepended entry. Read more

Prepend a value to this tuple, returning a new tuple with prepended value.

Should always be Self

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

Uses borrowed data to replace owned data, usually by cloning. Read more

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.