pub struct Io2HarnessSynchronousProxy { /* private fields */ }
Implementations§
source§impl Io2HarnessSynchronousProxy
impl Io2HarnessSynchronousProxy
pub fn new(channel: Channel) -> Self
pub fn into_channel(self) -> Channel
sourcepub fn wait_for_event(
&self,
deadline: MonotonicTime,
) -> Result<Io2HarnessEvent, Error>
pub fn wait_for_event( &self, deadline: MonotonicTime, ) -> Result<Io2HarnessEvent, 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 get_empty_directory(
&self,
directory_request: Channel,
) -> Result<(), Error>
pub fn get_empty_directory( &self, directory_request: Channel, ) -> Result<(), Error>
Prepares a test case with an empty directory. The directory metadata and directory entires should be read-only.
directory_request
the server end of the root directory connection.
This connection should have the following rights:
* [`fuchsia.io/Rights.CONNECT`].
* [`fuchsia.io/Rights.ENUMERATE`].
* [`fuchsia.io/Rights.TRAVERSE`].
* [`fuchsia.io/Rights.READ_BYTES`].
* [`fuchsia.io/Rights.WRITE_BYTES`].
* [`fuchsia.io/Rights.GET_ATTRIBUTES`].
* [`fuchsia.io/Rights.UPDATE_ATTRIBUTES`].
Trait Implementations§
source§impl Debug for Io2HarnessSynchronousProxy
impl Debug for Io2HarnessSynchronousProxy
source§impl SynchronousProxy for Io2HarnessSynchronousProxy
impl SynchronousProxy for Io2HarnessSynchronousProxy
§type Proxy = Io2HarnessProxy
type Proxy = Io2HarnessProxy
The async proxy for the same protocol.
§type Protocol = Io2HarnessMarker
type Protocol = Io2HarnessMarker
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 Io2HarnessSynchronousProxy
impl RefUnwindSafe for Io2HarnessSynchronousProxy
impl Send for Io2HarnessSynchronousProxy
impl Sync for Io2HarnessSynchronousProxy
impl Unpin for Io2HarnessSynchronousProxy
impl UnwindSafe for Io2HarnessSynchronousProxy
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