pub struct TargetAdapterSynchronousProxy { /* private fields */ }
Implementations§
Source§impl TargetAdapterSynchronousProxy
impl TargetAdapterSynchronousProxy
pub fn new(channel: Channel) -> Self
pub fn into_channel(self) -> Channel
Sourcepub fn wait_for_event(
&self,
deadline: MonotonicInstant,
) -> Result<TargetAdapterEvent, Error>
pub fn wait_for_event( &self, deadline: MonotonicInstant, ) -> Result<TargetAdapterEvent, Error>
Waits until an event arrives and returns it. It is safe for other threads to make concurrent requests while waiting for an event.
Sourcepub fn get_parameters(
&self,
___deadline: MonotonicInstant,
) -> Result<Vec<String>, Error>
pub fn get_parameters( &self, ___deadline: MonotonicInstant, ) -> Result<Vec<String>, Error>
Retrieves the target-specific fuzzer parameters, e.g. the package- relative location of seed corpora. These parameters are specific to individual fuzzers, and are used by both the fuzzing engine and the “test-engine” used to create fuzzer unit tests. For these reasons, it is most convenient for fuzzer authors to specify them as part of the (fuzzer-specific) target adapter’s component manifest file, and have the engine and test-engine retrieve them via this method.
- response
parameters
the command line parameters from a specific fuzzer’s component manifest.
Sourcepub fn connect(
&self,
eventpair: EventPair,
test_input: Vmo,
___deadline: MonotonicInstant,
) -> Result<(), Error>
pub fn connect( &self, eventpair: EventPair, test_input: Vmo, ___deadline: MonotonicInstant, ) -> Result<(), Error>
Provides the eventpair used by driver and adapter to signal each other,
and the shared VMO used to provide test inputs to the adapter. The VMO
must have the ZX_PROP_VMO_CONTENT_SIZE
property set.
- request
eventpair
the eventpair used to signal when fuzzing runs start and stop. - request
test_input
the shared VMO used by the engine to provide byte sequences to test.
Trait Implementations§
Source§impl SynchronousProxy for TargetAdapterSynchronousProxy
impl SynchronousProxy for TargetAdapterSynchronousProxy
Source§type Proxy = TargetAdapterProxy
type Proxy = TargetAdapterProxy
Source§type Protocol = TargetAdapterMarker
type Protocol = TargetAdapterMarker
Proxy
controls.