pub struct CoverageDataProviderProxy { /* private fields */ }
Implementations§
Source§impl CoverageDataProviderProxy
impl CoverageDataProviderProxy
Sourcepub fn new(channel: AsyncChannel) -> Self
pub fn new(channel: AsyncChannel) -> Self
Create a new Proxy for fuchsia.fuzzer/CoverageDataProvider.
Sourcepub fn take_event_stream(&self) -> CoverageDataProviderEventStream
pub fn take_event_stream(&self) -> CoverageDataProviderEventStream
Get a Stream of events from the remote end of the protocol.
§Panics
Panics if the event stream was already taken.
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,
) -> QueryResponseFut<Vec<CoverageData>, DefaultFuchsiaResourceDialect>
pub fn watch_coverage_data( &self, ) -> QueryResponseFut<Vec<CoverageData>, DefaultFuchsiaResourceDialect>
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 Clone for CoverageDataProviderProxy
impl Clone for CoverageDataProviderProxy
Source§fn clone(&self) -> CoverageDataProviderProxy
fn clone(&self) -> CoverageDataProviderProxy
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl CoverageDataProviderProxyInterface for CoverageDataProviderProxy
impl CoverageDataProviderProxyInterface for CoverageDataProviderProxy
type WatchCoverageDataResponseFut = QueryResponseFut<Vec<CoverageData>>
fn set_options(&self, options: &Options) -> Result<(), Error>
fn watch_coverage_data(&self) -> Self::WatchCoverageDataResponseFut
Source§impl Debug for CoverageDataProviderProxy
impl Debug for CoverageDataProviderProxy
Source§impl Proxy for CoverageDataProviderProxy
impl Proxy for CoverageDataProviderProxy
Source§type Protocol = CoverageDataProviderMarker
type Protocol = CoverageDataProviderMarker
Proxy
controls.Source§fn from_channel(inner: AsyncChannel) -> Self
fn from_channel(inner: AsyncChannel) -> Self
Source§fn into_channel(self) -> Result<AsyncChannel, Self>
fn into_channel(self) -> Result<AsyncChannel, Self>
Source§fn as_channel(&self) -> &AsyncChannel
fn as_channel(&self) -> &AsyncChannel
Auto Trait Implementations§
impl Freeze for CoverageDataProviderProxy
impl !RefUnwindSafe for CoverageDataProviderProxy
impl Send for CoverageDataProviderProxy
impl Sync for CoverageDataProviderProxy
impl Unpin for CoverageDataProviderProxy
impl !UnwindSafe for CoverageDataProviderProxy
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)