pub struct DriverHostControllerProxy { /* private fields */ }
Implementations§
source§impl DriverHostControllerProxy
impl DriverHostControllerProxy
sourcepub fn take_event_stream(&self) -> DriverHostControllerEventStream
pub fn take_event_stream(&self) -> DriverHostControllerEventStream
Get a Stream of events from the remote end of the DriverHostController protocol
Panics
Panics if the event stream was already taken.
sourcepub fn create_device(
&self,
coordinator: ClientEnd<CoordinatorMarker>,
device_controller: ServerEnd<DeviceControllerMarker>,
type_: &mut DeviceType,
local_device_id: u64
) -> QueryResponseFut<i32>
pub fn create_device( &self, coordinator: ClientEnd<CoordinatorMarker>, device_controller: ServerEnd<DeviceControllerMarker>, type_: &mut DeviceType, local_device_id: u64 ) -> QueryResponseFut<i32>
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 Clone for DriverHostControllerProxy
impl Clone for DriverHostControllerProxy
source§fn clone(&self) -> DriverHostControllerProxy
fn clone(&self) -> DriverHostControllerProxy
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for DriverHostControllerProxy
impl Debug for DriverHostControllerProxy
source§impl DriverHostControllerProxyInterface for DriverHostControllerProxy
impl DriverHostControllerProxyInterface for DriverHostControllerProxy
type CreateDeviceResponseFut = QueryResponseFut<i32>
fn create_device( &self, coordinator: ClientEnd<CoordinatorMarker>, device_controller: ServerEnd<DeviceControllerMarker>, type_: &mut DeviceType, local_device_id: u64 ) -> Self::CreateDeviceResponseFut
fn start( &self, start_args: DriverStartArgs, driver: ServerEnd<DriverMarker> ) -> Result<(), Error>
type RestartResponseFut = QueryResponseFut<i32>
fn restart(&self) -> Self::RestartResponseFut
source§impl Proxy for DriverHostControllerProxy
impl Proxy for DriverHostControllerProxy
§type Protocol = DriverHostControllerMarker
type Protocol = DriverHostControllerMarker
The protocol which this
Proxy
controls.source§fn from_channel(inner: AsyncChannel) -> Self
fn from_channel(inner: AsyncChannel) -> Self
Create a proxy over the given channel.
source§fn into_channel(self) -> Result<AsyncChannel, Self>
fn into_channel(self) -> Result<AsyncChannel, Self>
Attempt to convert the proxy back into a channel. Read more
source§fn as_channel(&self) -> &AsyncChannel
fn as_channel(&self) -> &AsyncChannel
Get a reference to the proxy’s underlying channel. Read more