Struct fidl_fuchsia_io_test::TestHarnessProxy
source · pub struct TestHarnessProxy { /* private fields */ }
Implementations§
source§impl TestHarnessProxy
impl TestHarnessProxy
sourcepub fn take_event_stream(&self) -> TestHarnessEventStream
pub fn take_event_stream(&self) -> TestHarnessEventStream
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<HarnessConfig, DefaultFuchsiaResourceDialect>
pub fn get_config( &self, ) -> QueryResponseFut<HarnessConfig, DefaultFuchsiaResourceDialect>
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
.
sourcepub fn get_service_dir(
&self,
) -> QueryResponseFut<ClientEnd<DirectoryMarker>, DefaultFuchsiaResourceDialect>
pub fn get_service_dir( &self, ) -> QueryResponseFut<ClientEnd<DirectoryMarker>, DefaultFuchsiaResourceDialect>
Serves a service directory that contains a fuchsia.test.placeholders/Echo instance.
The test harness must have supports_services
reported in it’s config to use this method,
and the service instance should match the discoverable protocol name.
Trait Implementations§
source§impl Clone for TestHarnessProxy
impl Clone for TestHarnessProxy
source§fn clone(&self) -> TestHarnessProxy
fn clone(&self) -> TestHarnessProxy
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 TestHarnessProxy
impl Debug for TestHarnessProxy
source§impl Proxy for TestHarnessProxy
impl Proxy for TestHarnessProxy
§type Protocol = TestHarnessMarker
type Protocol = TestHarnessMarker
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
source§impl TestHarnessProxyInterface for TestHarnessProxy
impl TestHarnessProxyInterface for TestHarnessProxy
type GetConfigResponseFut = QueryResponseFut<HarnessConfig>
fn get_config(&self) -> Self::GetConfigResponseFut
fn get_directory( &self, root: Directory, flags: OpenFlags, directory_request: ServerEnd<DirectoryMarker>, ) -> Result<(), Error>
type GetServiceDirResponseFut = QueryResponseFut<ClientEnd<DirectoryMarker>>
fn get_service_dir(&self) -> Self::GetServiceDirResponseFut
Auto Trait Implementations§
impl Freeze for TestHarnessProxy
impl !RefUnwindSafe for TestHarnessProxy
impl Send for TestHarnessProxy
impl Sync for TestHarnessProxy
impl Unpin for TestHarnessProxy
impl !UnwindSafe for TestHarnessProxy
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)