pub struct DriverHostControllerSynchronousProxy { /* private fields */ }
Implementations§
source§impl DriverHostControllerSynchronousProxy
impl DriverHostControllerSynchronousProxy
pub fn new(channel: Channel) -> Self
pub fn into_channel(self) -> Channel
sourcepub fn wait_for_event(
&self,
deadline: Time
) -> Result<DriverHostControllerEvent, Error>
pub fn wait_for_event( &self, deadline: Time ) -> Result<DriverHostControllerEvent, Error>
Waits until an event arrives and returns it. It is safe for other threads to make concurrent requests while waiting for an event.
sourcepub fn create_device(
&self,
coordinator: ClientEnd<CoordinatorMarker>,
device_controller: ServerEnd<DeviceControllerMarker>,
type_: &mut DeviceType,
local_device_id: u64,
___deadline: Time
) -> Result<i32, Error>
pub fn create_device( &self, coordinator: ClientEnd<CoordinatorMarker>, device_controller: ServerEnd<DeviceControllerMarker>, type_: &mut DeviceType, local_device_id: u64, ___deadline: Time ) -> Result<i32, Error>
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