pub struct CoverageDataProviderSynchronousProxy { /* private fields */ }
Implementations§
source§impl CoverageDataProviderSynchronousProxy
impl CoverageDataProviderSynchronousProxy
pub fn new(channel: Channel) -> Self
pub fn into_channel(self) -> Channel
sourcepub fn wait_for_event(
&self,
deadline: MonotonicInstant,
) -> Result<CoverageDataProviderEvent, Error>
pub fn wait_for_event( &self, deadline: MonotonicInstant, ) -> Result<CoverageDataProviderEvent, 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 set_options(&self, options: &Options) -> Result<(), Error>
pub fn set_options(&self, options: &Options) -> Result<(), Error>
Sets the options to be returned by fuchsia.fuzzer.CoverageDataCollector/Initialize
.
sourcepub fn watch_coverage_data(
&self,
___deadline: MonotonicInstant,
) -> Result<Vec<CoverageData>, Error>
pub fn watch_coverage_data( &self, ___deadline: MonotonicInstant, ) -> Result<Vec<CoverageData>, Error>
Provides coverage data collected from multiple processes.
Returns a vector of CoverageData
structs containing the information provided by clients of
fuchsia.fuzzer.CoverageDataCollector
. This method uses the “hanging get” pattern: The
initial call will immediately return whatever data is available, up to MAX_COVERAGE_DATA
.
If no fuzzed components have been started yet, this be an empty vector. If there are more
than MAX_COVERAGE_DATA
elements available, the remainder are retained for subsequent
calls. If there is no more data available, subsequent calls will block until new coverage
data is available.
The channel is closed on FIDL error. Clients should exit and not attempt to reconnect.
Trait Implementations§
source§impl SynchronousProxy for CoverageDataProviderSynchronousProxy
impl SynchronousProxy for CoverageDataProviderSynchronousProxy
§type Proxy = CoverageDataProviderProxy
type Proxy = CoverageDataProviderProxy
§type Protocol = CoverageDataProviderMarker
type Protocol = CoverageDataProviderMarker
Proxy
controls.