pub enum TestHarnessRequest {
GetConfig {
responder: TestHarnessGetConfigResponder,
},
CreateDirectory {
contents: Vec<Option<Box<DirectoryEntry>>>,
flags: Flags,
object_request: ServerEnd<DirectoryMarker>,
control_handle: TestHarnessControlHandle,
},
OpenServiceDirectory {
responder: TestHarnessOpenServiceDirectoryResponder,
},
}
Variants§
GetConfig
Returns the list of properties of the filesystem.
Fields
§
responder: TestHarnessGetConfigResponder
CreateDirectory
Creates a directory with the given contents
and opens it with the specified flags
.
Fields
§
contents: Vec<Option<Box<DirectoryEntry>>>
§
flags: Flags
§
object_request: ServerEnd<DirectoryMarker>
§
control_handle: TestHarnessControlHandle
OpenServiceDirectory
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: TestHarnessOpenServiceDirectoryResponder
Implementations§
Source§impl TestHarnessRequest
impl TestHarnessRequest
pub fn into_get_config(self) -> Option<TestHarnessGetConfigResponder>
pub fn into_create_directory( self, ) -> Option<(Vec<Option<Box<DirectoryEntry>>>, Flags, ServerEnd<DirectoryMarker>, TestHarnessControlHandle)>
pub fn into_open_service_directory( self, ) -> Option<TestHarnessOpenServiceDirectoryResponder>
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