pub struct CorpusReaderSynchronousProxy { /* private fields */ }
Implementations§
Source§impl CorpusReaderSynchronousProxy
impl CorpusReaderSynchronousProxy
pub fn new(channel: Channel) -> Self
pub fn into_channel(self) -> Channel
Sourcepub fn wait_for_event(
&self,
deadline: MonotonicInstant,
) -> Result<CorpusReaderEvent, Error>
pub fn wait_for_event( &self, deadline: MonotonicInstant, ) -> Result<CorpusReaderEvent, 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 next(
&self,
test_input: Input,
___deadline: MonotonicInstant,
) -> Result<i32, Error>
pub fn next( &self, test_input: Input, ___deadline: MonotonicInstant, ) -> Result<i32, Error>
Sends the next test input from the corpus.
- request
test_input
the byte sequence representing the next test input in a corpus.
- response
result
one of the following:ZX_OK
if the test input was sent.- A socket error if transferring the input failed.
Trait Implementations§
Source§impl Debug for CorpusReaderSynchronousProxy
impl Debug for CorpusReaderSynchronousProxy
Source§impl SynchronousProxy for CorpusReaderSynchronousProxy
impl SynchronousProxy for CorpusReaderSynchronousProxy
Source§type Proxy = CorpusReaderProxy
type Proxy = CorpusReaderProxy
The async proxy for the same protocol.
Source§type Protocol = CorpusReaderMarker
type Protocol = CorpusReaderMarker
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 CorpusReaderSynchronousProxy
impl RefUnwindSafe for CorpusReaderSynchronousProxy
impl Send for CorpusReaderSynchronousProxy
impl Sync for CorpusReaderSynchronousProxy
impl Unpin for CorpusReaderSynchronousProxy
impl UnwindSafe for CorpusReaderSynchronousProxy
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