pub enum DriverHostControllerRequest {
CreateDevice {
coordinator: ClientEnd<CoordinatorMarker>,
device_controller: ServerEnd<DeviceControllerMarker>,
type_: DeviceType,
local_device_id: u64,
responder: DriverHostControllerCreateDeviceResponder,
},
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
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_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
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for DriverHostControllerRequest
impl Send for DriverHostControllerRequest
impl Sync for DriverHostControllerRequest
impl Unpin for DriverHostControllerRequest
impl !UnwindSafe for DriverHostControllerRequest
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