pub struct SyncFromBrokerStage<IC, ICB, DI, S, SP>where
    SP: ShMemProvider + 'static,
    S: UsesInput,
    IC: InputConverter<From = S::Input, To = DI>,
    ICB: InputConverter<From = DI, To = S::Input>,
    DI: Input,
{ /* private fields */ }
Expand description

A stage that loads testcases from disk to sync with other fuzzers such as AFL++

Implementations§

source§

impl<IC, ICB, DI, S, SP> SyncFromBrokerStage<IC, ICB, DI, S, SP>where
    SP: ShMemProvider + 'static,
    S: UsesInput,
    IC: InputConverter<From = S::Input, To = DI>,
    ICB: InputConverter<From = DI, To = S::Input>,
    DI: Input,

source

pub fn new(client: LlmpEventConverter<IC, ICB, DI, S, SP>) -> Self

Creates a new SyncFromBrokerStage

Trait Implementations§

source§

impl<IC, ICB, DI, S, SP> Debug for SyncFromBrokerStage<IC, ICB, DI, S, SP>where
    SP: ShMemProvider + 'static + Debug,
    S: UsesInput + Debug,
    IC: InputConverter<From = S::Input, To = DI> + Debug,
    ICB: InputConverter<From = DI, To = S::Input> + Debug,
    DI: Input + Debug,

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl<E, EM, IC, ICB, DI, S, SP, Z> Stage<E, EM, Z> for SyncFromBrokerStage<IC, ICB, DI, S, SP>where
    EM: UsesState<State = S> + EventFirer,
    S: UsesInput + HasClientPerfMonitor + HasExecutions + HasCorpus + HasRand + HasMetadata,
    SP: ShMemProvider,
    E: HasObservers<State = S> + Executor<EM, Z>,
    for<'a> E::Observers: Deserialize<'a>,
    Z: EvaluatorObservers<E::Observers, State = S> + ExecutionProcessor<E::Observers, State = S>,
    IC: InputConverter<From = S::Input, To = DI>,
    ICB: InputConverter<From = DI, To = S::Input>,
    DI: Input,

source§

fn perform(
    &mut self,
    fuzzer: &mut Z,
    executor: &mut E,
    state: &mut Z::State,
    manager: &mut EM,
    _corpus_idx: CorpusId
) -> Result<(), Error>

Run the stage
source§

impl<IC, ICB, DI, S, SP> UsesState for SyncFromBrokerStage<IC, ICB, DI, S, SP>where
    SP: ShMemProvider + 'static,
    S: UsesInput,
    IC: InputConverter<From = S::Input, To = DI>,
    ICB: InputConverter<From = DI, To = S::Input>,
    DI: Input,

§

type State = S

The state known by this type.

Auto Trait Implementations§

§

impl<IC, ICB, DI, S, SP> !RefUnwindSafe for SyncFromBrokerStage<IC, ICB, DI, S, SP>

§

impl<IC, ICB, DI, S, SP> !Send for SyncFromBrokerStage<IC, ICB, DI, S, SP>

§

impl<IC, ICB, DI, S, SP> !Sync for SyncFromBrokerStage<IC, ICB, DI, S, SP>

§

impl<IC, ICB, DI, S, SP> Unpin for SyncFromBrokerStage<IC, ICB, DI, S, SP>where
    IC: Unpin,
    ICB: Unpin,
    S: Unpin,
    SP: Unpin,
    <SP as ShMemProvider>::ShMem: Unpin,

§

impl<IC, ICB, DI, S, SP> !UnwindSafe for SyncFromBrokerStage<IC, ICB, DI, S, SP>

Blanket Implementations§

source§

impl<T> Any for Twhere
    T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere
    T: ?Sized,

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere
    T: ?Sized,

const: unstable · source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

const: unstable · source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for Twhere
    U: From<T>,

const: unstable · source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<Tail, T> Prepend<T> for Tail

§

type PreprendResult = Tail

The Resulting TupleList, of an Prepend::prepend() call, including the prepended entry.
source§

fn prepend(self, value: T) -> (T, <Tail as Prepend<T>>::PreprendResult)

Prepend a value to this tuple, returning a new tuple with prepended value.
source§

impl<T, U> TryFrom<U> for Twhere
    U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
const: unstable · source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere
    U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
const: unstable · source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
source§

impl<KS> UsesInput for KSwhere
    KS: UsesState,

§

type Input = <<KS as UsesState>::State as UsesInput>::Input

Type which will be used throughout this state.