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: MonotonicInstant,
) -> Result<InputDeviceEvent, Error>
pub fn wait_for_event( &self, deadline: MonotonicInstant, ) -> 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 get_input_reports_reader(
&self,
reader: ServerEnd<InputReportsReaderMarker>,
) -> Result<(), Error>
pub fn get_input_reports_reader( &self, reader: ServerEnd<InputReportsReaderMarker>, ) -> Result<(), Error>
Open a new InputReportsReader on this device. Each reader receives their own reports.
Sourcepub fn get_descriptor(
&self,
___deadline: MonotonicInstant,
) -> Result<DeviceDescriptor, Error>
pub fn get_descriptor( &self, ___deadline: MonotonicInstant, ) -> Result<DeviceDescriptor, Error>
Gets the device descriptor for this device.
Sourcepub fn send_output_report(
&self,
report: &OutputReport,
___deadline: MonotonicInstant,
) -> Result<InputDeviceSendOutputReportResult, Error>
pub fn send_output_report( &self, report: &OutputReport, ___deadline: MonotonicInstant, ) -> Result<InputDeviceSendOutputReportResult, Error>
Send a single output report to the device. This will throw an error if the output report does not follow the OutputDescriptor.
Sourcepub fn get_feature_report(
&self,
___deadline: MonotonicInstant,
) -> Result<InputDeviceGetFeatureReportResult, Error>
pub fn get_feature_report( &self, ___deadline: MonotonicInstant, ) -> Result<InputDeviceGetFeatureReportResult, Error>
Get the feature report for a given device. This requests the state of the device’s features.
Sourcepub fn set_feature_report(
&self,
report: &FeatureReport,
___deadline: MonotonicInstant,
) -> Result<InputDeviceSetFeatureReportResult, Error>
pub fn set_feature_report( &self, report: &FeatureReport, ___deadline: MonotonicInstant, ) -> Result<InputDeviceSetFeatureReportResult, Error>
Set the feature report for a given device. This sets the state of the device’s features.
Sourcepub fn get_input_report(
&self,
device_type: DeviceType,
___deadline: MonotonicInstant,
) -> Result<InputDeviceGetInputReportResult, Error>
pub fn get_input_report( &self, device_type: DeviceType, ___deadline: MonotonicInstant, ) -> Result<InputDeviceGetInputReportResult, Error>
For general cases, InputReportReader is the preferred way of getting
InputReports. For devices that don’t send InputReports naturally, this
method can be used to request a report from the device type indicated.
Does not block, and returns ZX_ERR_NOT_SUPPORTED if GetInputReport
or
device_type
are not supported.
Trait Implementations§
Source§impl Debug for InputDeviceSynchronousProxy
impl Debug for InputDeviceSynchronousProxy
Source§impl SynchronousProxy for InputDeviceSynchronousProxy
impl SynchronousProxy for InputDeviceSynchronousProxy
Source§type Proxy = InputDeviceProxy
type Proxy = InputDeviceProxy
Source§type Protocol = InputDeviceMarker
type Protocol = InputDeviceMarker
Proxy
controls.