Trait libafl::inputs::Input[][src]

pub trait Input: Clone + Serialize + DeserializeOwned + Debug {
    fn to_file<P>(&self, path: P) -> Result<(), Error>
    where
        P: AsRef<Path>
, { ... }
fn from_file<P>(path: P) -> Result<Self, Error>
    where
        P: AsRef<Path>
, { ... } }
Expand description

An input for the target

Provided methods

fn to_file<P>(&self, path: P) -> Result<(), Error> where
    P: AsRef<Path>, 
[src]

Write this input to the file

fn from_file<P>(path: P) -> Result<Self, Error> where
    P: AsRef<Path>, 
[src]

Load the contents of this input from a file

Implementors

impl Input for BytesInput[src]

fn to_file<P>(&self, path: P) -> Result<(), Error> where
    P: AsRef<Path>, 
[src]

Write this input to the file

fn from_file<P>(path: P) -> Result<Self, Error> where
    P: AsRef<Path>, 
[src]

Load the contents of this input from a file

impl Input for NopInput[src]