pub struct InputFile {
    pub path: PathBuf,
    pub file: File,
    pub rc: Rc<RefCell<usize>>,
}
Expand description

An InputFile to write fuzzer input to. The target/forkserver will read from this file.

Fields

path: PathBuf

The filename/path too this InputFile

file: File

The underlying file that got created

rc: Rc<RefCell<usize>>

The ref count for this InputFile. Once it reaches 0, the underlying File will be removed.

Implementations

Creates a new InputFile

Gets the file as raw file descriptor

Writes the given buffer to the file

Rewinds the file to the beginning

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

Executes the destructor for this type. Read more

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

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 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.

The resulting type after obtaining ownership.

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

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.