pub enum CombinedDeviceRequest {
Query {
query_id: QueryId,
responder: CombinedDeviceQueryResponder,
},
Connect2 {
client_id: u64,
primary_channel: ServerEnd<PrimaryMarker>,
notification_channel: ServerEnd<NotificationMarker>,
control_handle: CombinedDeviceControlHandle,
},
DumpState {
dump_type: u32,
control_handle: CombinedDeviceControlHandle,
},
GetIcdList {
responder: CombinedDeviceGetIcdListResponder,
},
}
Expand description
A combination of all the production |Device| protocols. This protocol is implemented on the Magma service side and should not be used by clients.
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: CombinedDeviceControlHandle
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: CombinedDeviceGetIcdListResponder
Returns a list of ICDs that can be used with this Magma device. The list is sorted in descending order of preference.
Implementations§
source§impl CombinedDeviceRequest
impl CombinedDeviceRequest
pub fn into_query(self) -> Option<(QueryId, CombinedDeviceQueryResponder)>
pub fn into_connect2( self ) -> Option<(u64, ServerEnd<PrimaryMarker>, ServerEnd<NotificationMarker>, CombinedDeviceControlHandle)>
pub fn into_dump_state(self) -> Option<(u32, CombinedDeviceControlHandle)>
pub fn into_get_icd_list(self) -> Option<CombinedDeviceGetIcdListResponder>
sourcepub fn method_name(&self) -> &'static str
pub fn method_name(&self) -> &'static str
Name of the method defined in FIDL