pub struct InputDeviceSynchronousProxy { /* private fields */ }
Implementations§
source§impl InputDeviceSynchronousProxy
impl InputDeviceSynchronousProxy
pub fn new(channel: Channel) -> Self
pub fn into_channel(self) -> Channel
sourcepub fn wait_for_event(&self, deadline: Time) -> Result<InputDeviceEvent, Error>
pub fn wait_for_event(&self, deadline: Time) -> Result<InputDeviceEvent, 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 dispatch_report(&self, report: &mut InputReport) -> Result<(), Error>
pub fn dispatch_report(&self, report: &mut InputReport) -> Result<(), Error>
Dispatch an InputReport
from the device token