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
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.
Fields
§
primary_channel: ServerEnd<PrimaryMarker>
§
notification_channel: ServerEnd<NotificationMarker>
§
control_handle: TestDeviceControlHandle
DumpState
Dumps driver and hardware state to the log.
GetIcdList
Returns a list of ICDs that can be used with this Magma device. The list is sorted in descending order of preference.
Fields
§
responder: TestDeviceGetIcdListResponder
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
Trait Implementations§
Auto Trait Implementations§
impl Freeze for TestDeviceRequest
impl !RefUnwindSafe for TestDeviceRequest
impl Send for TestDeviceRequest
impl Sync for TestDeviceRequest
impl Unpin for TestDeviceRequest
impl !UnwindSafe for TestDeviceRequest
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