Struct libafl::bolts::staterestore::StateRestorer[][src]

pub struct StateRestorer<SP> where
    SP: ShMemProvider
{ /* fields omitted */ }
Expand description

A StateRestorer saves and restores bytes to a shared map. If the state gets larger than the preallocated ShMem shared map, it will instead write to disk, and store the file name into the map. Writing to StateRestorer multiple times is not allowed.

Implementations

Get the map size backing this StateRestorer.

Writes this StateRestorer to env variable, to be restored later

Create a StateRestorer from env variable name

Create a new StateRestorer.

Saves a state to the connected ShMem, or a tmpfile, if its serialized size get too large.

Reset this StateRestorer to an empty state.

Returns true, if this StateRestorer has contents.

Restores the contents saved in this StateRestorer, if any are availiable. Can only be read once.

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

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

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.