pub struct DeviceInstanceSynchronousProxy { /* private fields */ }
Implementations§
source§impl DeviceInstanceSynchronousProxy
impl DeviceInstanceSynchronousProxy
pub fn new(channel: Channel) -> Self
pub fn into_channel(self) -> Channel
sourcepub fn wait_for_event(
&self,
deadline: Time
) -> Result<DeviceInstanceEvent, Error>
pub fn wait_for_event( &self, deadline: Time ) -> Result<DeviceInstanceEvent, 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 get_device(&self, device: ServerEnd<DeviceMarker>) -> Result<(), Error>
pub fn get_device(&self, device: ServerEnd<DeviceMarker>) -> Result<(), Error>
Connects to the [Device
] implementation.
- request
device
device handle.