pub enum RegistryRequest {
Connect {
fuzzer_url: String,
controller: ServerEnd<ControllerMarker>,
timeout: i64,
responder: RegistryConnectResponder,
},
Disconnect {
fuzzer_url: String,
responder: RegistryDisconnectResponder,
},
}
Expand description
Entry point for the fuzz_manager
. It uses this protocol to wait for fuzz
tests started within the test runner framework to register a
ControllerProvider
, and to stop those fuzzers upon request.
Variants§
Connect
Connects the Controller
to a registered fuzzer.
Uses a ControllerProvider
that has been Register
ed with the given
URL to connect. If the associated provider is not available, it assumes
it is starting and blocks until the fuzzer calls Registrar.Register
,
or the given timeout
elapses. At most one call to Connect
will block
in this manner at a time.
- request
fuzzer_url
the package URL for the fuzzer. - request
provider
the connection to aController
client. - request
tiemout
maximum duration to wait for a connection.
- error one of the following:
ZX_ERR_TIMED_OUT
if thetimeout
elapses without the provider becoming available.ZX_ERR_SHOULD_WAIT
if already waiting for a fuzzer to start.
Disconnect
Removes the provider associated with the given URL from the registry and closes its channel. The associated fuzzer should exit upon channel closure.
- request
fuzzer_url
the package URL for the fuzzer.
- error
ZX_ERR_NOT_FOUND
if no such provider exists in the registry.
Implementations§
Source§impl RegistryRequest
impl RegistryRequest
pub fn into_connect( self, ) -> Option<(String, ServerEnd<ControllerMarker>, i64, RegistryConnectResponder)>
pub fn into_disconnect(self) -> Option<(String, RegistryDisconnectResponder)>
Sourcepub fn method_name(&self) -> &'static str
pub fn method_name(&self) -> &'static str
Name of the method defined in FIDL
Trait Implementations§
Auto Trait Implementations§
impl Freeze for RegistryRequest
impl !RefUnwindSafe for RegistryRequest
impl Send for RegistryRequest
impl Sync for RegistryRequest
impl Unpin for RegistryRequest
impl !UnwindSafe for RegistryRequest
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
Mutably borrows from an owned value. Read more