Struct fidl_fuchsia_fuzzer::RegistrarProxy
source · pub struct RegistrarProxy { /* private fields */ }
Implementations§
source§impl RegistrarProxy
impl RegistrarProxy
sourcepub fn new(channel: AsyncChannel) -> Self
pub fn new(channel: AsyncChannel) -> Self
Create a new Proxy for fuchsia.fuzzer/Registrar.
sourcepub fn take_event_stream(&self) -> RegistrarEventStream
pub fn take_event_stream(&self) -> RegistrarEventStream
Get a Stream of events from the remote end of the protocol.
§Panics
Panics if the event stream was already taken.
sourcepub fn register(
&self,
fuzzer_url: &str,
provider: ClientEnd<ControllerProviderMarker>,
) -> QueryResponseFut<(), DefaultFuchsiaResourceDialect>
pub fn register( &self, fuzzer_url: &str, provider: ClientEnd<ControllerProviderMarker>, ) -> QueryResponseFut<(), DefaultFuchsiaResourceDialect>
Adds a ControllerProvider
. This should be called by the fuzzer itself,
using the channel provided by the fuzz_test_runner
, and in response to
being started by the fuzz_manager
.
The registry will close the channel to the fuzzer on error, on a
corresponding call to Registry.Disconnect
, or on exit. The fuzzer
should exit when the channel closes.
- request
fuzzer_url
the package URL for the fuzzer. - request
provider
the connection to aControllerProvider
.
Trait Implementations§
source§impl Clone for RegistrarProxy
impl Clone for RegistrarProxy
source§fn clone(&self) -> RegistrarProxy
fn clone(&self) -> RegistrarProxy
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for RegistrarProxy
impl Debug for RegistrarProxy
source§impl Proxy for RegistrarProxy
impl Proxy for RegistrarProxy
§type Protocol = RegistrarMarker
type Protocol = RegistrarMarker
The protocol which this
Proxy
controls.source§fn from_channel(inner: AsyncChannel) -> Self
fn from_channel(inner: AsyncChannel) -> Self
Create a proxy over the given channel.
source§fn into_channel(self) -> Result<AsyncChannel, Self>
fn into_channel(self) -> Result<AsyncChannel, Self>
Attempt to convert the proxy back into a channel. Read more
source§fn as_channel(&self) -> &AsyncChannel
fn as_channel(&self) -> &AsyncChannel
Get a reference to the proxy’s underlying channel. Read more
source§impl RegistrarProxyInterface for RegistrarProxy
impl RegistrarProxyInterface for RegistrarProxy
type RegisterResponseFut = QueryResponseFut<()>
fn register( &self, fuzzer_url: &str, provider: ClientEnd<ControllerProviderMarker>, ) -> Self::RegisterResponseFut
Auto Trait Implementations§
impl Freeze for RegistrarProxy
impl !RefUnwindSafe for RegistrarProxy
impl Send for RegistrarProxy
impl Sync for RegistrarProxy
impl Unpin for RegistrarProxy
impl !UnwindSafe for RegistrarProxy
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)