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
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: CombinedDeviceControlHandle
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: CombinedDeviceGetIcdListResponder
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
Trait Implementations§
Auto Trait Implementations§
impl Freeze for CombinedDeviceRequest
impl !RefUnwindSafe for CombinedDeviceRequest
impl Send for CombinedDeviceRequest
impl Sync for CombinedDeviceRequest
impl Unpin for CombinedDeviceRequest
impl !UnwindSafe for CombinedDeviceRequest
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