Struct fidl_fuchsia_io_test::Io1HarnessProxy
source · pub struct Io1HarnessProxy { /* private fields */ }
Implementations§
source§impl Io1HarnessProxy
impl Io1HarnessProxy
sourcepub fn take_event_stream(&self) -> Io1HarnessEventStream
pub fn take_event_stream(&self) -> Io1HarnessEventStream
Get a Stream of events from the remote end of the protocol.
§Panics
Panics if the event stream was already taken.
sourcepub fn get_config(&self) -> QueryResponseFut<Io1Config>
pub fn get_config(&self) -> QueryResponseFut<Io1Config>
Returns the list of properties of the filesystem.
sourcepub fn get_directory(
&self,
root: Directory,
flags: OpenFlags,
directory_request: ServerEnd<DirectoryMarker>
) -> Result<(), Error>
pub fn get_directory( &self, root: Directory, flags: OpenFlags, directory_request: ServerEnd<DirectoryMarker> ) -> Result<(), Error>
Serves a directory with the given contents.
root
describes the initial layout of the filesystem that will be
used for the test case. The root directory that is served (returned via
directory_request
) will have the equivalent contents, served with the
given flags
.
Trait Implementations§
source§impl Clone for Io1HarnessProxy
impl Clone for Io1HarnessProxy
source§fn clone(&self) -> Io1HarnessProxy
fn clone(&self) -> Io1HarnessProxy
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 Io1HarnessProxy
impl Debug for Io1HarnessProxy
source§impl Io1HarnessProxyInterface for Io1HarnessProxy
impl Io1HarnessProxyInterface for Io1HarnessProxy
type GetConfigResponseFut = QueryResponseFut<Io1Config>
fn get_config(&self) -> Self::GetConfigResponseFut
fn get_directory( &self, root: Directory, flags: OpenFlags, directory_request: ServerEnd<DirectoryMarker> ) -> Result<(), Error>
source§impl Proxy for Io1HarnessProxy
impl Proxy for Io1HarnessProxy
§type Protocol = Io1HarnessMarker
type Protocol = Io1HarnessMarker
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 Io1HarnessProxy
impl !RefUnwindSafe for Io1HarnessProxy
impl Send for Io1HarnessProxy
impl Sync for Io1HarnessProxy
impl Unpin for Io1HarnessProxy
impl !UnwindSafe for Io1HarnessProxy
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