pub enum Io2HarnessRequest {
GetEmptyDirectory {
directory_request: Channel,
control_handle: Io2HarnessControlHandle,
},
}
Expand description
Stub harness api for the io2.fidl protocol. TODO(https://fxbug.dev/42122678): Add separate io2 test harness api once we come up with a good enough set of functions that we have enough flexibility to create variable directory structures to with explicit permission settings for tests.
Variants§
GetEmptyDirectory
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`].
Implementations§
source§impl Io2HarnessRequest
impl Io2HarnessRequest
pub fn into_get_empty_directory( self, ) -> Option<(Channel, Io2HarnessControlHandle)>
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 Io2HarnessRequest
impl !RefUnwindSafe for Io2HarnessRequest
impl Send for Io2HarnessRequest
impl Sync for Io2HarnessRequest
impl Unpin for Io2HarnessRequest
impl !UnwindSafe for Io2HarnessRequest
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