pub struct InputDeviceRegistrySynchronousProxy { /* private fields */ }
Implementations§
source§impl InputDeviceRegistrySynchronousProxy
impl InputDeviceRegistrySynchronousProxy
pub fn new(channel: Channel) -> Self
pub fn into_channel(self) -> Channel
sourcepub fn wait_for_event(
&self,
deadline: Time
) -> Result<InputDeviceRegistryEvent, Error>
pub fn wait_for_event( &self, deadline: Time ) -> Result<InputDeviceRegistryEvent, 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 register_device(
&self,
descriptor: &mut DeviceDescriptor,
input_device: ServerEnd<InputDeviceMarker>
) -> Result<(), Error>
pub fn register_device( &self, descriptor: &mut DeviceDescriptor, input_device: ServerEnd<InputDeviceMarker> ) -> Result<(), Error>
Register a device with the capabilities described by DeviceDescriptor