pub enum TestRequest {
Get {
responder: TestGetResponder,
},
ConnectSpiLoopback {
server: ServerEnd<DeviceMarker>,
responder: TestConnectSpiLoopbackResponder,
},
#[non_exhaustive] _UnknownMethod {
ordinal: u64,
control_handle: TestControlHandle,
method_type: MethodType,
},
}Variants§
Get
Fields
§
responder: TestGetResponderConnectSpiLoopback
Opens a connection to a SPI device in loopback mode, to be used for testing.
Returns ZX_ERR_NOT_SUPPORTED if debugging is not enabled in this build.
If the SPI implementation driver itself does not support loopback mode, this call will succeed, but calls to the Device will fail with ZX_ERR_NOT_SUPPORTED instead.
#[non_exhaustive]_UnknownMethod
An interaction was received which does not match any known method.
Fields
This variant is marked as non-exhaustive
Non-exhaustive enum variants could have additional fields added in future. Therefore, non-exhaustive enum variants cannot be constructed in external crates and cannot be matched against.
§
control_handle: TestControlHandle§
method_type: MethodTypeImplementations§
Source§impl TestRequest
impl TestRequest
pub fn into_get(self) -> Option<TestGetResponder>
pub fn into_connect_spi_loopback( self, ) -> Option<(ServerEnd<DeviceMarker>, TestConnectSpiLoopbackResponder)>
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 !RefUnwindSafe for TestRequest
impl !UnwindSafe for TestRequest
impl Freeze for TestRequest
impl Send for TestRequest
impl Sync for TestRequest
impl Unpin for TestRequest
impl UnsafeUnpin for TestRequest
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