pub struct InputDevice;Expand description
The type corresponding to the InputDevice protocol.
An InputDevice driver represents a single physical input device.
The InputDevice maintains an internal FIFO of MAX_DEVICE_REPORT_COUNT
reports for each client that connects. Reports are removed from the FIFO
once they are read by the client. If the FIFO is full, it will drop the
oldest report to make room for an incoming report.
Trait Implementations§
Source§impl Debug for InputDevice
impl Debug for InputDevice
Source§impl Discoverable for InputDevice
impl Discoverable for InputDevice
Source§const PROTOCOL_NAME: &'static str = "fuchsia.input.report.InputDevice"
const PROTOCOL_NAME: &'static str = "fuchsia.input.report.InputDevice"
The service name to use to connect to this discoverable protocol.
Source§impl<___H, ___T> DispatchClientMessage<___H, ___T> for InputDevicewhere
___H: InputDeviceClientHandler<___T> + Send,
___T: Transport,
impl<___H, ___T> DispatchClientMessage<___H, ___T> for InputDevicewhere
___H: InputDeviceClientHandler<___T> + Send,
___T: Transport,
Source§impl<___H, ___T> DispatchLocalClientMessage<___H, ___T> for InputDevicewhere
___H: InputDeviceLocalClientHandler<___T>,
___T: Transport,
impl<___H, ___T> DispatchLocalClientMessage<___H, ___T> for InputDevicewhere
___H: InputDeviceLocalClientHandler<___T>,
___T: Transport,
Source§impl<___H, ___T> DispatchLocalServerMessage<___H, ___T> for InputDevicewhere
___H: InputDeviceLocalServerHandler<___T>,
___T: Transport,
for<'de> InputDeviceGetInputReportsReaderRequest: Decode<<<___T as Transport>::RecvBuffer as AsDecoder<'de>>::Decoder, Constraint = ()>,
for<'de> InputDeviceSendOutputReportRequest<'de>: Decode<<<___T as Transport>::RecvBuffer as AsDecoder<'de>>::Decoder, Constraint = ()>,
for<'de> InputDeviceSetFeatureReportRequest<'de>: Decode<<<___T as Transport>::RecvBuffer as AsDecoder<'de>>::Decoder, Constraint = ()>,
for<'de> InputDeviceGetInputReportRequest: Decode<<<___T as Transport>::RecvBuffer as AsDecoder<'de>>::Decoder, Constraint = ()>,
impl<___H, ___T> DispatchLocalServerMessage<___H, ___T> for InputDevicewhere
___H: InputDeviceLocalServerHandler<___T>,
___T: Transport,
for<'de> InputDeviceGetInputReportsReaderRequest: Decode<<<___T as Transport>::RecvBuffer as AsDecoder<'de>>::Decoder, Constraint = ()>,
for<'de> InputDeviceSendOutputReportRequest<'de>: Decode<<<___T as Transport>::RecvBuffer as AsDecoder<'de>>::Decoder, Constraint = ()>,
for<'de> InputDeviceSetFeatureReportRequest<'de>: Decode<<<___T as Transport>::RecvBuffer as AsDecoder<'de>>::Decoder, Constraint = ()>,
for<'de> InputDeviceGetInputReportRequest: Decode<<<___T as Transport>::RecvBuffer as AsDecoder<'de>>::Decoder, Constraint = ()>,
Source§impl<___H, ___T> DispatchServerMessage<___H, ___T> for InputDevicewhere
___H: InputDeviceServerHandler<___T> + Send,
___T: Transport,
for<'de> InputDeviceGetInputReportsReaderRequest: Decode<<<___T as Transport>::RecvBuffer as AsDecoder<'de>>::Decoder, Constraint = ()>,
for<'de> InputDeviceSendOutputReportRequest<'de>: Decode<<<___T as Transport>::RecvBuffer as AsDecoder<'de>>::Decoder, Constraint = ()>,
for<'de> InputDeviceSetFeatureReportRequest<'de>: Decode<<<___T as Transport>::RecvBuffer as AsDecoder<'de>>::Decoder, Constraint = ()>,
for<'de> InputDeviceGetInputReportRequest: Decode<<<___T as Transport>::RecvBuffer as AsDecoder<'de>>::Decoder, Constraint = ()>,
impl<___H, ___T> DispatchServerMessage<___H, ___T> for InputDevicewhere
___H: InputDeviceServerHandler<___T> + Send,
___T: Transport,
for<'de> InputDeviceGetInputReportsReaderRequest: Decode<<<___T as Transport>::RecvBuffer as AsDecoder<'de>>::Decoder, Constraint = ()>,
for<'de> InputDeviceSendOutputReportRequest<'de>: Decode<<<___T as Transport>::RecvBuffer as AsDecoder<'de>>::Decoder, Constraint = ()>,
for<'de> InputDeviceSetFeatureReportRequest<'de>: Decode<<<___T as Transport>::RecvBuffer as AsDecoder<'de>>::Decoder, Constraint = ()>,
for<'de> InputDeviceGetInputReportRequest: Decode<<<___T as Transport>::RecvBuffer as AsDecoder<'de>>::Decoder, Constraint = ()>,
Source§impl<___T> HasConnectionHandles<___T> for InputDevicewhere
___T: Transport,
impl<___T> HasConnectionHandles<___T> for InputDevicewhere
___T: Transport,
Source§impl HasTransport for InputDevice
Available on Fuchsia only.
impl HasTransport for InputDevice
Available on Fuchsia only.
Source§impl PartialEq for InputDevice
impl PartialEq for InputDevice
impl StructuralPartialEq for InputDevice
Auto Trait Implementations§
impl Freeze for InputDevice
impl RefUnwindSafe for InputDevice
impl Send for InputDevice
impl Sync for InputDevice
impl Unpin for InputDevice
impl UnsafeUnpin for InputDevice
impl UnwindSafe for InputDevice
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
§impl<T> InstanceFromServiceTransport<T> for T
impl<T> InstanceFromServiceTransport<T> for T
§fn from_service_transport(handle: T) -> T
fn from_service_transport(handle: T) -> T
Converts the given service transport handle of type
T to [Self]