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
.
pub fn new_save_meta(
dir_path: PathBuf,
meta_format: Option<OnDiskMetadataFormat>
) -> Result<Self, Error>
pub fn new_save_meta(
dir_path: PathBuf,
meta_format: Option<OnDiskMetadataFormat>
) -> Result<Self, Error>
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
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.
Current testcase scheduled (mut)
Returns the “default value” for a type. Read more
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations
impl<I> !RefUnwindSafe for OnDiskCorpus<I>
impl<I> !Send for OnDiskCorpus<I>
impl<I> !Sync for OnDiskCorpus<I>
impl<I> Unpin for OnDiskCorpus<I> where
I: Unpin,
impl<I> !UnwindSafe for OnDiskCorpus<I>
Blanket Implementations
Mutably borrows from an owned value. Read more
type PreprendResult = Tail
type PreprendResult = Tail
The Resulting TupleList
, of an Prepend::prepend()
call,
including the prepended entry. Read more
type Output = T
type Output = T
Should always be Self