pub enum InputDeviceRegistryRequest {
Register {
device: ClientEnd<InputDeviceMarker>,
control_handle: InputDeviceRegistryControlHandle,
},
RegisterAndGetDeviceInfo {
device: ClientEnd<InputDeviceMarker>,
responder: InputDeviceRegistryRegisterAndGetDeviceInfoResponder,
},
}
Expand description
A TEST-ONLY protocol which injects InputDevice
s into the
input system.
This protocol is not intended for production use; products should take measures to ensure this protocol is not routed to production components.
Variants§
Register
Registers an input device represented by device
.
On registration, the InputDeviceRegistry starts listening for input reports on the
InputReportsReader returned by device.GetInputReportsReader().
RegisterAndGetDeviceInfo
Registers an input device represented by device
and return the device id of the
added test device.
On registration, the InputDeviceRegistry starts listening for input reports on the
InputReportsReader returned by device.GetInputReportsReader().
Fields
§
device: ClientEnd<InputDeviceMarker>
Implementations§
Source§impl InputDeviceRegistryRequest
impl InputDeviceRegistryRequest
pub fn into_register( self, ) -> Option<(ClientEnd<InputDeviceMarker>, InputDeviceRegistryControlHandle)>
pub fn into_register_and_get_device_info( self, ) -> Option<(ClientEnd<InputDeviceMarker>, InputDeviceRegistryRegisterAndGetDeviceInfoResponder)>
Sourcepub fn method_name(&self) -> &'static str
pub fn method_name(&self) -> &'static str
Name of the method defined in FIDL
Trait Implementations§
Auto Trait Implementations§
impl Freeze for InputDeviceRegistryRequest
impl !RefUnwindSafe for InputDeviceRegistryRequest
impl Send for InputDeviceRegistryRequest
impl Sync for InputDeviceRegistryRequest
impl Unpin for InputDeviceRegistryRequest
impl !UnwindSafe for InputDeviceRegistryRequest
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more