Struct fidl_fuchsia_io_test::Io2HarnessProxy
source · pub struct Io2HarnessProxy { /* private fields */ }
Implementations§
source§impl Io2HarnessProxy
impl Io2HarnessProxy
sourcepub fn take_event_stream(&self) -> Io2HarnessEventStream
pub fn take_event_stream(&self) -> Io2HarnessEventStream
Get a Stream of events from the remote end of the protocol.
§Panics
Panics if the event stream was already taken.
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 Clone for Io2HarnessProxy
impl Clone for Io2HarnessProxy
source§fn clone(&self) -> Io2HarnessProxy
fn clone(&self) -> Io2HarnessProxy
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 Io2HarnessProxy
impl Debug for Io2HarnessProxy
source§impl Io2HarnessProxyInterface for Io2HarnessProxy
impl Io2HarnessProxyInterface for Io2HarnessProxy
fn get_empty_directory(&self, directory_request: Channel) -> Result<(), Error>
source§impl Proxy for Io2HarnessProxy
impl Proxy for Io2HarnessProxy
§type Protocol = Io2HarnessMarker
type Protocol = Io2HarnessMarker
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
§fn into_client_end(self) -> Result<ClientEnd<Self::Protocol>, Self>
fn into_client_end(self) -> Result<ClientEnd<Self::Protocol>, Self>
Attempt to convert the proxy back into a client end. Read more
Auto Trait Implementations§
impl Freeze for Io2HarnessProxy
impl !RefUnwindSafe for Io2HarnessProxy
impl Send for Io2HarnessProxy
impl Sync for Io2HarnessProxy
impl Unpin for Io2HarnessProxy
impl !UnwindSafe for Io2HarnessProxy
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