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_: DeviceType,
local_device_id: u64,
___deadline: Time
) -> Result<i32, Error>
pub fn create_device( &self, coordinator: ClientEnd<CoordinatorMarker>, device_controller: ServerEnd<DeviceControllerMarker>, type_: 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
Trait Implementations§
source§impl SynchronousProxy for DriverHostControllerSynchronousProxy
impl SynchronousProxy for DriverHostControllerSynchronousProxy
§type Proxy = DriverHostControllerProxy
type Proxy = DriverHostControllerProxy
The async proxy for the same protocol.
§type Protocol = DriverHostControllerMarker
type Protocol = DriverHostControllerMarker
The protocol which this
Proxy
controls.source§fn from_channel(inner: Channel) -> Self
fn from_channel(inner: Channel) -> Self
Create a proxy over the given channel.
source§fn into_channel(self) -> Channel
fn into_channel(self) -> Channel
Convert the proxy back into a channel.
source§fn as_channel(&self) -> &Channel
fn as_channel(&self) -> &Channel
Get a reference to the proxy’s underlying channel. Read more
Auto Trait Implementations§
impl RefUnwindSafe for DriverHostControllerSynchronousProxy
impl Send for DriverHostControllerSynchronousProxy
impl Sync for DriverHostControllerSynchronousProxy
impl Unpin for DriverHostControllerSynchronousProxy
impl UnwindSafe for DriverHostControllerSynchronousProxy
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