pub struct SyncFromDiskStage<CB, E, EM, I, S, Z>where
CB: FnMut(&mut Z, &mut S, &Path) -> Result<I, Error>,
I: Input,
S: HasClientPerfMonitor + HasCorpus<I> + HasRand + HasMetadata,
Z: Evaluator<E, EM, I, S>,{ /* private fields */ }
Expand description
A stage that loads testcases from disk to sync with other fuzzers such as AFL++
Implementations
sourceimpl<CB, E, EM, I, S, Z> SyncFromDiskStage<CB, E, EM, I, S, Z>where
CB: FnMut(&mut Z, &mut S, &Path) -> Result<I, Error>,
I: Input,
S: HasClientPerfMonitor + HasCorpus<I> + HasRand + HasMetadata,
Z: Evaluator<E, EM, I, S>,
impl<CB, E, EM, I, S, Z> SyncFromDiskStage<CB, E, EM, I, S, Z>where
CB: FnMut(&mut Z, &mut S, &Path) -> Result<I, Error>,
I: Input,
S: HasClientPerfMonitor + HasCorpus<I> + HasRand + HasMetadata,
Z: Evaluator<E, EM, I, S>,
sourcepub fn new(sync_dir: PathBuf, load_callback: CB) -> Self
pub fn new(sync_dir: PathBuf, load_callback: CB) -> Self
Creates a new SyncFromDiskStage
sourceimpl<E, EM, I, S, Z> SyncFromDiskStage<SyncFromDiskFunction<I, S, Z>, E, EM, I, S, Z>where
I: Input,
S: HasClientPerfMonitor + HasCorpus<I> + HasRand + HasMetadata,
Z: Evaluator<E, EM, I, S>,
impl<E, EM, I, S, Z> SyncFromDiskStage<SyncFromDiskFunction<I, S, Z>, E, EM, I, S, Z>where
I: Input,
S: HasClientPerfMonitor + HasCorpus<I> + HasRand + HasMetadata,
Z: Evaluator<E, EM, I, S>,
sourcepub fn with_from_file(sync_dir: PathBuf) -> Self
pub fn with_from_file(sync_dir: PathBuf) -> Self
Creates a new SyncFromDiskStage
invoking Input::from_file
to load inputs
Trait Implementations
sourceimpl<CB: Debug, E: Debug, EM: Debug, I: Debug, S: Debug, Z: Debug> Debug for SyncFromDiskStage<CB, E, EM, I, S, Z>where
CB: FnMut(&mut Z, &mut S, &Path) -> Result<I, Error>,
I: Input,
S: HasClientPerfMonitor + HasCorpus<I> + HasRand + HasMetadata,
Z: Evaluator<E, EM, I, S>,
impl<CB: Debug, E: Debug, EM: Debug, I: Debug, S: Debug, Z: Debug> Debug for SyncFromDiskStage<CB, E, EM, I, S, Z>where
CB: FnMut(&mut Z, &mut S, &Path) -> Result<I, Error>,
I: Input,
S: HasClientPerfMonitor + HasCorpus<I> + HasRand + HasMetadata,
Z: Evaluator<E, EM, I, S>,
sourceimpl<CB, E, EM, I, S, Z> Stage<E, EM, S, Z> for SyncFromDiskStage<CB, E, EM, I, S, Z>where
CB: FnMut(&mut Z, &mut S, &Path) -> Result<I, Error>,
I: Input,
S: HasClientPerfMonitor + HasCorpus<I> + HasRand + HasMetadata,
Z: Evaluator<E, EM, I, S>,
impl<CB, E, EM, I, S, Z> Stage<E, EM, S, Z> for SyncFromDiskStage<CB, E, EM, I, S, Z>where
CB: FnMut(&mut Z, &mut S, &Path) -> Result<I, Error>,
I: Input,
S: HasClientPerfMonitor + HasCorpus<I> + HasRand + HasMetadata,
Z: Evaluator<E, EM, I, S>,
Auto Trait Implementations
impl<CB, E, EM, I, S, Z> RefUnwindSafe for SyncFromDiskStage<CB, E, EM, I, S, Z>where
CB: RefUnwindSafe,
E: RefUnwindSafe,
EM: RefUnwindSafe,
I: RefUnwindSafe,
S: RefUnwindSafe,
Z: RefUnwindSafe,
impl<CB, E, EM, I, S, Z> Send for SyncFromDiskStage<CB, E, EM, I, S, Z>where
CB: Send,
E: Send,
EM: Send,
I: Send,
S: Send,
Z: Send,
impl<CB, E, EM, I, S, Z> Sync for SyncFromDiskStage<CB, E, EM, I, S, Z>where
CB: Sync,
E: Sync,
EM: Sync,
I: Sync,
S: Sync,
Z: Sync,
impl<CB, E, EM, I, S, Z> Unpin for SyncFromDiskStage<CB, E, EM, I, S, Z>where
CB: Unpin,
E: Unpin,
EM: Unpin,
I: Unpin,
S: Unpin,
Z: Unpin,
impl<CB, E, EM, I, S, Z> UnwindSafe for SyncFromDiskStage<CB, E, EM, I, S, Z>where
CB: UnwindSafe,
E: UnwindSafe,
EM: UnwindSafe,
I: UnwindSafe,
S: UnwindSafe,
Z: UnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<Tail, T> Prepend<T> for Tail
impl<Tail, T> Prepend<T> for Tail
type PreprendResult = Tail
type PreprendResult = Tail
sourcefn prepend(self, value: T) -> (T, <Tail as Prepend<T>>::PreprendResult)
fn prepend(self, value: T) -> (T, <Tail as Prepend<T>>::PreprendResult)
Prepend a value to this tuple, returning a new tuple with prepended value.