pub enum TestHarnessRequest {
GetConfig {
responder: TestHarnessGetConfigResponder,
},
GetDirectory {
root: Directory,
flags: OpenFlags,
directory_request: ServerEnd<DirectoryMarker>,
control_handle: TestHarnessControlHandle,
},
GetServiceDir {
responder: TestHarnessGetServiceDirResponder,
},
}
Variants§
GetConfig
Returns the list of properties of the filesystem.
Fields
§
responder: TestHarnessGetConfigResponder
GetDirectory
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
.
Fields
§
flags: OpenFlags
§
directory_request: ServerEnd<DirectoryMarker>
§
control_handle: TestHarnessControlHandle
GetServiceDir
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.
Fields
§
responder: TestHarnessGetServiceDirResponder
Implementations§
source§impl TestHarnessRequest
impl TestHarnessRequest
pub fn into_get_config(self) -> Option<TestHarnessGetConfigResponder>
pub fn into_get_directory( self, ) -> Option<(Directory, OpenFlags, ServerEnd<DirectoryMarker>, TestHarnessControlHandle)>
pub fn into_get_service_dir(self) -> Option<TestHarnessGetServiceDirResponder>
sourcepub fn method_name(&self) -> &'static str
pub fn method_name(&self) -> &'static str
Name of the method defined in FIDL
Trait Implementations§
Auto Trait Implementations§
impl Freeze for TestHarnessRequest
impl !RefUnwindSafe for TestHarnessRequest
impl Send for TestHarnessRequest
impl Sync for TestHarnessRequest
impl Unpin for TestHarnessRequest
impl !UnwindSafe for TestHarnessRequest
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