pub enum InternalRequest {
GetTestPackage {
responder: InternalGetTestPackageResponder,
},
GetTestResolutionContext {
responder: InternalGetTestResolutionContextResponder,
},
GetBootDirectory {
responder: InternalGetBootDirectoryResponder,
},
GetBootDriverOverrides {
responder: InternalGetBootDriverOverridesResponder,
},
}
Expand description
This protocol is served when running with the driver_test_realm to be used by the fake-resolver component to access the various directories and metadata of the test it needs.
Variants§
GetTestPackage
Gets the test component’s package directory. This is used to read drivers in this package. If a test resolution context is available through |GetTestResolutionContext|, subpackages in this test package are also discovered.
Fields
§
responder: InternalGetTestPackageResponder
GetTestResolutionContext
Gets the test component’s resolution context. This is used to open subpackages of the test package.
Fields
§
responder: InternalGetTestResolutionContextResponder
GetBootDirectory
Get the ‘/boot’ directory to be used for the “fuchsia-boot:///” resolver. If an invalid |boot_dir| is returned, the driver test realm’s ‘/pkg’ directory is treated as the boot directory.
Fields
§
responder: InternalGetBootDirectoryResponder
GetBootDriverOverrides
Fields
§
responder: InternalGetBootDriverOverridesResponder
Implementations§
Source§impl InternalRequest
impl InternalRequest
pub fn into_get_test_package(self) -> Option<InternalGetTestPackageResponder>
pub fn into_get_test_resolution_context( self, ) -> Option<InternalGetTestResolutionContextResponder>
pub fn into_get_boot_directory( self, ) -> Option<InternalGetBootDirectoryResponder>
pub fn into_get_boot_driver_overrides( self, ) -> Option<InternalGetBootDriverOverridesResponder>
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 InternalRequest
impl !RefUnwindSafe for InternalRequest
impl Send for InternalRequest
impl Sync for InternalRequest
impl Unpin for InternalRequest
impl !UnwindSafe for InternalRequest
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