pub struct RegistrarSynchronousProxy { /* private fields */ }
Implementations§
Source§impl RegistrarSynchronousProxy
impl RegistrarSynchronousProxy
pub fn new(channel: Channel) -> Self
pub fn into_channel(self) -> Channel
Sourcepub fn wait_for_event(
&self,
deadline: MonotonicInstant,
) -> Result<RegistrarEvent, Error>
pub fn wait_for_event( &self, deadline: MonotonicInstant, ) -> Result<RegistrarEvent, 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 register(
&self,
fuzzer_url: &str,
provider: ClientEnd<ControllerProviderMarker>,
___deadline: MonotonicInstant,
) -> Result<(), Error>
pub fn register( &self, fuzzer_url: &str, provider: ClientEnd<ControllerProviderMarker>, ___deadline: MonotonicInstant, ) -> Result<(), Error>
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 Debug for RegistrarSynchronousProxy
impl Debug for RegistrarSynchronousProxy
Source§impl SynchronousProxy for RegistrarSynchronousProxy
impl SynchronousProxy for RegistrarSynchronousProxy
Source§type Proxy = RegistrarProxy
type Proxy = RegistrarProxy
The async proxy for the same protocol.
Source§type Protocol = RegistrarMarker
type Protocol = RegistrarMarker
The protocol which this
Proxy
controls.Source§fn from_channel(inner: Channel) -> Self
fn from_channel(inner: Channel) -> Self
Create a proxy over the given channel.
Source§fn into_channel(self) -> Channel
fn into_channel(self) -> Channel
Convert the proxy back into a channel.
Source§fn as_channel(&self) -> &Channel
fn as_channel(&self) -> &Channel
Get a reference to the proxy’s underlying channel. Read more
Auto Trait Implementations§
impl Freeze for RegistrarSynchronousProxy
impl RefUnwindSafe for RegistrarSynchronousProxy
impl Send for RegistrarSynchronousProxy
impl Sync for RegistrarSynchronousProxy
impl Unpin for RegistrarSynchronousProxy
impl UnwindSafe for RegistrarSynchronousProxy
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