pub enum DriverHostControllerRequest {
CreateDevice {
coordinator: ClientEnd<CoordinatorMarker>,
device_controller: ServerEnd<DeviceControllerMarker>,
type_: DeviceType,
local_device_id: u64,
responder: DriverHostControllerCreateDeviceResponder,
},
Start {
start_args: DriverStartArgs,
driver: ServerEnd<DriverMarker>,
control_handle: DriverHostControllerControlHandle,
},
Restart {
responder: DriverHostControllerRestartResponder,
},
}
Expand description
Protocol for controlling a driver host process from the driver manager
Variants§
CreateDevice
Fields
§
coordinator: ClientEnd<CoordinatorMarker>
§
device_controller: ServerEnd<DeviceControllerMarker>
§
type_: DeviceType
§
responder: DriverHostControllerCreateDeviceResponder
Create a device in the driver host. |type| describes what type of device is set up, how it communicates with its parent (if it has one).
local_device_id
will be a unique value within the device’s devhost
Start
Fields
§
start_args: DriverStartArgs
§
driver: ServerEnd<DriverMarker>
§
control_handle: DriverHostControllerControlHandle
Start a DFv2 driver within a driver host.
Restart
Fields
§
responder: DriverHostControllerRestartResponder
Request to restart the driver host. Also restarts all children devices and drivers and rebinds them once the Driver Host has restarted.
Implementations§
source§impl DriverHostControllerRequest
impl DriverHostControllerRequest
pub fn into_create_device( self ) -> Option<(ClientEnd<CoordinatorMarker>, ServerEnd<DeviceControllerMarker>, DeviceType, u64, DriverHostControllerCreateDeviceResponder)>
pub fn into_start( self ) -> Option<(DriverStartArgs, ServerEnd<DriverMarker>, DriverHostControllerControlHandle)>
pub fn into_restart(self) -> Option<DriverHostControllerRestartResponder>
sourcepub fn method_name(&self) -> &'static str
pub fn method_name(&self) -> &'static str
Name of the method defined in FIDL