Struct libafl::state::StdState [−][src]
pub struct StdState<C, FT, I, R, SC> where
C: Corpus<I>,
I: Input,
R: Rand,
FT: FeedbackStatesTuple,
SC: Corpus<I>, { /* fields omitted */ }
Expand description
The state a fuzz run.
Implementations
impl<C, FT, R, SC> StdState<C, FT, BytesInput, R, SC> where
C: Corpus<BytesInput>,
R: Rand,
FT: FeedbackStatesTuple,
SC: Corpus<BytesInput>,
[src]
impl<C, FT, R, SC> StdState<C, FT, BytesInput, R, SC> where
C: Corpus<BytesInput>,
R: Rand,
FT: FeedbackStatesTuple,
SC: Corpus<BytesInput>,
[src]pub fn load_initial_inputs<E, EM, Z>(
&mut self,
fuzzer: &mut Z,
executor: &mut E,
manager: &mut EM,
in_dirs: &[PathBuf]
) -> Result<(), Error> where
Z: Evaluator<E, EM, BytesInput, Self>,
EM: EventManager<E, BytesInput, Self, Z>,
[src]
pub fn load_initial_inputs<E, EM, Z>(
&mut self,
fuzzer: &mut Z,
executor: &mut E,
manager: &mut EM,
in_dirs: &[PathBuf]
) -> Result<(), Error> where
Z: Evaluator<E, EM, BytesInput, Self>,
EM: EventManager<E, BytesInput, Self, Z>,
[src]Loads initial inputs from the passed-in in_dirs
.
impl<C, FT, I, R, SC> StdState<C, FT, I, R, SC> where
C: Corpus<I>,
I: Input,
R: Rand,
FT: FeedbackStatesTuple,
SC: Corpus<I>,
[src]
impl<C, FT, I, R, SC> StdState<C, FT, I, R, SC> where
C: Corpus<I>,
I: Input,
R: Rand,
FT: FeedbackStatesTuple,
SC: Corpus<I>,
[src]pub fn generate_initial_inputs<G, E, EM, Z>(
&mut self,
fuzzer: &mut Z,
executor: &mut E,
generator: &mut G,
manager: &mut EM,
num: usize
) -> Result<(), Error> where
G: Generator<I, R>,
Z: Evaluator<E, EM, I, Self>,
EM: EventManager<E, I, Self, Z>,
[src]
pub fn generate_initial_inputs<G, E, EM, Z>(
&mut self,
fuzzer: &mut Z,
executor: &mut E,
generator: &mut G,
manager: &mut EM,
num: usize
) -> Result<(), Error> where
G: Generator<I, R>,
Z: Evaluator<E, EM, I, Self>,
EM: EventManager<E, I, Self, Z>,
[src]Generate num
initial inputs, using the passed-in generator.
Trait Implementations
impl<C: Clone, FT: Clone, I: Clone, R: Clone, SC: Clone> Clone for StdState<C, FT, I, R, SC> where
C: Corpus<I>,
I: Input,
R: Rand,
FT: FeedbackStatesTuple,
SC: Corpus<I>,
[src]
impl<C: Clone, FT: Clone, I: Clone, R: Clone, SC: Clone> Clone for StdState<C, FT, I, R, SC> where
C: Corpus<I>,
I: Input,
R: Rand,
FT: FeedbackStatesTuple,
SC: Corpus<I>,
[src]impl<C: Debug, FT: Debug, I: Debug, R: Debug, SC: Debug> Debug for StdState<C, FT, I, R, SC> where
C: Corpus<I>,
I: Input,
R: Rand,
FT: FeedbackStatesTuple,
SC: Corpus<I>,
[src]
impl<C: Debug, FT: Debug, I: Debug, R: Debug, SC: Debug> Debug for StdState<C, FT, I, R, SC> where
C: Corpus<I>,
I: Input,
R: Rand,
FT: FeedbackStatesTuple,
SC: Corpus<I>,
[src]impl<'de, C, FT, I, R, SC> Deserialize<'de> for StdState<C, FT, I, R, SC> where
C: Corpus<I>,
I: Input,
R: Rand,
FT: FeedbackStatesTuple,
SC: Corpus<I>,
FT: DeserializeOwned,
[src]
impl<'de, C, FT, I, R, SC> Deserialize<'de> for StdState<C, FT, I, R, SC> where
C: Corpus<I>,
I: Input,
R: Rand,
FT: FeedbackStatesTuple,
SC: Corpus<I>,
FT: DeserializeOwned,
[src]fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]Deserialize this value from the given Serde deserializer. Read more
impl<C, FT, I, R, SC> HasClientPerfStats for StdState<C, FT, I, R, SC> where
C: Corpus<I>,
I: Input,
R: Rand,
FT: FeedbackStatesTuple,
SC: Corpus<I>,
[src]
impl<C, FT, I, R, SC> HasClientPerfStats for StdState<C, FT, I, R, SC> where
C: Corpus<I>,
I: Input,
R: Rand,
FT: FeedbackStatesTuple,
SC: Corpus<I>,
[src]fn introspection_stats(&self) -> &ClientPerfStats
[src]
fn introspection_stats(&self) -> &ClientPerfStats
[src]ClientPerfStats
itself
fn introspection_stats_mut(&mut self) -> &mut ClientPerfStats
[src]
fn introspection_stats_mut(&mut self) -> &mut ClientPerfStats
[src]Mutatable ref to ClientPerfStats
impl<C, FT, I, R, SC> HasCorpus<C, I> for StdState<C, FT, I, R, SC> where
C: Corpus<I>,
I: Input,
R: Rand,
FT: FeedbackStatesTuple,
SC: Corpus<I>,
[src]
impl<C, FT, I, R, SC> HasCorpus<C, I> for StdState<C, FT, I, R, SC> where
C: Corpus<I>,
I: Input,
R: Rand,
FT: FeedbackStatesTuple,
SC: Corpus<I>,
[src]impl<C, FT, I, R, SC> HasExecutions for StdState<C, FT, I, R, SC> where
C: Corpus<I>,
I: Input,
R: Rand,
FT: FeedbackStatesTuple,
SC: Corpus<I>,
[src]
impl<C, FT, I, R, SC> HasExecutions for StdState<C, FT, I, R, SC> where
C: Corpus<I>,
I: Input,
R: Rand,
FT: FeedbackStatesTuple,
SC: Corpus<I>,
[src]fn executions(&self) -> &usize
[src]
fn executions(&self) -> &usize
[src]The executions counter
fn executions_mut(&mut self) -> &mut usize
[src]
fn executions_mut(&mut self) -> &mut usize
[src]The executions counter (mut)
impl<C, FT, I, R, SC> HasFeedbackStates<FT> for StdState<C, FT, I, R, SC> where
C: Corpus<I>,
I: Input,
R: Rand,
FT: FeedbackStatesTuple,
SC: Corpus<I>,
[src]
impl<C, FT, I, R, SC> HasFeedbackStates<FT> for StdState<C, FT, I, R, SC> where
C: Corpus<I>,
I: Input,
R: Rand,
FT: FeedbackStatesTuple,
SC: Corpus<I>,
[src]fn feedback_states(&self) -> &FT
[src]
fn feedback_states(&self) -> &FT
[src]The feedback states
fn feedback_states_mut(&mut self) -> &mut FT
[src]
fn feedback_states_mut(&mut self) -> &mut FT
[src]The feedback states (mut)
impl<C, FT, I, R, SC> HasMaxSize for StdState<C, FT, I, R, SC> where
C: Corpus<I>,
I: Input,
R: Rand,
FT: FeedbackStatesTuple,
SC: Corpus<I>,
[src]
impl<C, FT, I, R, SC> HasMaxSize for StdState<C, FT, I, R, SC> where
C: Corpus<I>,
I: Input,
R: Rand,
FT: FeedbackStatesTuple,
SC: Corpus<I>,
[src]impl<C, FT, I, R, SC> HasMetadata for StdState<C, FT, I, R, SC> where
C: Corpus<I>,
I: Input,
R: Rand,
FT: FeedbackStatesTuple,
SC: Corpus<I>,
[src]
impl<C, FT, I, R, SC> HasMetadata for StdState<C, FT, I, R, SC> where
C: Corpus<I>,
I: Input,
R: Rand,
FT: FeedbackStatesTuple,
SC: Corpus<I>,
[src]fn metadata(&self) -> &SerdeAnyMap
[src]
fn metadata(&self) -> &SerdeAnyMap
[src]Get all the metadata into an hashbrown::HashMap
fn metadata_mut(&mut self) -> &mut SerdeAnyMap
[src]
fn metadata_mut(&mut self) -> &mut SerdeAnyMap
[src]Get all the metadata into an hashbrown::HashMap
(mutable)
fn add_metadata<M>(&mut self, meta: M) where
M: SerdeAny,
[src]
fn add_metadata<M>(&mut self, meta: M) where
M: SerdeAny,
[src]Add a metadata to the metadata map
fn has_metadata<M>(&self) -> bool where
M: SerdeAny,
[src]
fn has_metadata<M>(&self) -> bool where
M: SerdeAny,
[src]Check for a metadata
impl<C, FT, I, R, SC> HasRand<R> for StdState<C, FT, I, R, SC> where
C: Corpus<I>,
I: Input,
R: Rand,
FT: FeedbackStatesTuple,
SC: Corpus<I>,
[src]
impl<C, FT, I, R, SC> HasRand<R> for StdState<C, FT, I, R, SC> where
C: Corpus<I>,
I: Input,
R: Rand,
FT: FeedbackStatesTuple,
SC: Corpus<I>,
[src]impl<C, FT, I, R, SC> HasSolutions<SC, I> for StdState<C, FT, I, R, SC> where
C: Corpus<I>,
I: Input,
R: Rand,
FT: FeedbackStatesTuple,
SC: Corpus<I>,
[src]
impl<C, FT, I, R, SC> HasSolutions<SC, I> for StdState<C, FT, I, R, SC> where
C: Corpus<I>,
I: Input,
R: Rand,
FT: FeedbackStatesTuple,
SC: Corpus<I>,
[src]impl<C, FT, I, R, SC> HasStartTime for StdState<C, FT, I, R, SC> where
C: Corpus<I>,
I: Input,
R: Rand,
FT: FeedbackStatesTuple,
SC: Corpus<I>,
[src]
impl<C, FT, I, R, SC> HasStartTime for StdState<C, FT, I, R, SC> where
C: Corpus<I>,
I: Input,
R: Rand,
FT: FeedbackStatesTuple,
SC: Corpus<I>,
[src]fn start_time(&self) -> &Duration
[src]
fn start_time(&self) -> &Duration
[src]The starting time
fn start_time_mut(&mut self) -> &mut Duration
[src]
fn start_time_mut(&mut self) -> &mut Duration
[src]The starting time (mut)
impl<C, FT, I, R, SC> Serialize for StdState<C, FT, I, R, SC> where
C: Corpus<I>,
I: Input,
R: Rand,
FT: FeedbackStatesTuple,
SC: Corpus<I>,
FT: DeserializeOwned,
[src]
impl<C, FT, I, R, SC> Serialize for StdState<C, FT, I, R, SC> where
C: Corpus<I>,
I: Input,
R: Rand,
FT: FeedbackStatesTuple,
SC: Corpus<I>,
FT: DeserializeOwned,
[src]impl<C, FT, I, R, SC> State for StdState<C, FT, I, R, SC> where
C: Corpus<I>,
I: Input,
R: Rand,
FT: FeedbackStatesTuple,
SC: Corpus<I>,
[src]
C: Corpus<I>,
I: Input,
R: Rand,
FT: FeedbackStatesTuple,
SC: Corpus<I>,
Auto Trait Implementations
impl<C, FT, I, R, SC> !RefUnwindSafe for StdState<C, FT, I, R, SC>
impl<C, FT, I, R, SC> !Send for StdState<C, FT, I, R, SC>
impl<C, FT, I, R, SC> !Sync for StdState<C, FT, I, R, SC>
impl<C, FT, I, R, SC> Unpin for StdState<C, FT, I, R, SC> where
C: Unpin,
FT: Unpin,
I: Unpin,
R: Unpin,
SC: Unpin,
C: Unpin,
FT: Unpin,
I: Unpin,
R: Unpin,
SC: Unpin,
impl<C, FT, I, R, SC> !UnwindSafe for StdState<C, FT, I, R, SC>
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]pub fn borrow_mut(&mut self) -> &mut T
[src]
pub fn borrow_mut(&mut self) -> &mut T
[src]Mutably borrows from an owned value. Read more
impl<Tail, T> Prepend<T> for Tail
[src]
impl<Tail, T> Prepend<T> for Tail
[src]type PreprendResult = Tail
type PreprendResult = Tail
The Resulting TupleList
, of an Prepend::prepend()
call,
including the prepended entry. Read more
impl<T> Same<T> for T
impl<T> Same<T> for T
type Output = T
type Output = T
Should always be Self
impl<T> Serialize for T where
T: Serialize + ?Sized,
[src]
impl<T> Serialize for T where
T: Serialize + ?Sized,
[src]pub fn erased_serialize(
&self,
serializer: &mut dyn Serializer
) -> Result<Ok, Error>
[src]
&self,
serializer: &mut dyn Serializer
) -> Result<Ok, Error>
impl<T> ToOwned for T where
T: Clone,
[src]
impl<T> ToOwned for T where
T: Clone,
[src]type Owned = T
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn to_owned(&self) -> T
[src]Creates owned data from borrowed data, usually by cloning. Read more
pub fn clone_into(&self, target: &mut T)
[src]
pub fn clone_into(&self, target: &mut T)
[src]🔬 This is a nightly-only experimental API. (toowned_clone_into
)
recently added
Uses borrowed data to replace owned data, usually by cloning. Read more
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>,
[src]
T: for<'de> Deserialize<'de>,