pub enum TestDeviceRequest {
Query {
query_id: QueryId,
responder: TestDeviceQueryResponder,
},
Connect2 {
client_id: u64,
primary_channel: ServerEnd<PrimaryMarker>,
notification_channel: ServerEnd<NotificationMarker>,
control_handle: TestDeviceControlHandle,
},
DumpState {
dump_type: u32,
control_handle: TestDeviceControlHandle,
},
GetIcdList {
responder: TestDeviceGetIcdListResponder,
},
GetUnitTestStatus {
responder: TestDeviceGetUnitTestStatusResponder,
},
}
Expand description
Additional device methods for the purposes of testing the MSD and should not be used by ICDs.
Variants§
Query
On success, returns a result either in a buffer or a simple value.
Connect2
Fields
§
primary_channel: ServerEnd<PrimaryMarker>
§
notification_channel: ServerEnd<NotificationMarker>
§
control_handle: TestDeviceControlHandle
Creates a connection to the device comprised of two IPC channels. The primary channel is for the Primary protocol (see below). The notification channel is used for vendor-specific messages which are sent only in the reverse (server-client) direction, typically in response to client command completion.
DumpState
Dumps driver and hardware state to the log.
GetIcdList
Fields
§
responder: TestDeviceGetIcdListResponder
Returns a list of ICDs that can be used with this Magma device. The list is sorted in descending order of preference.
GetUnitTestStatus
Fields
§
responder: TestDeviceGetUnitTestStatusResponder
Implementations§
source§impl TestDeviceRequest
impl TestDeviceRequest
pub fn into_query(self) -> Option<(QueryId, TestDeviceQueryResponder)>
pub fn into_connect2( self ) -> Option<(u64, ServerEnd<PrimaryMarker>, ServerEnd<NotificationMarker>, TestDeviceControlHandle)>
pub fn into_dump_state(self) -> Option<(u32, TestDeviceControlHandle)>
pub fn into_get_icd_list(self) -> Option<TestDeviceGetIcdListResponder>
pub fn into_get_unit_test_status( self ) -> Option<TestDeviceGetUnitTestStatusResponder>
sourcepub fn method_name(&self) -> &'static str
pub fn method_name(&self) -> &'static str
Name of the method defined in FIDL