pub struct KeyEventInjector;Expand description
The type corresponding to the KeyEventInjector protocol.
Provides the ability to inject KeyEvents into the keyboard subsystem.
§Roles
This protocol will typically be:
- Implemented by platform components which process and deliver keyboard events.
- Consumed by components which originiate keyboard events. E.g. an on-screen keyboard, or the Session Framework Input Pipeline.
§Related protocols
This protocol should be using in preference to legacy protocols which provide similar functionality. Specifically, this means this protocol should be preferred over
fuchsia.ui.input.ImeServicewhich providesInjectInput(),DispatchKey(), andDispatchKey3()fuchsia.ui.input.InputMethodEditor, which providesInjectInput()andDispatchKey3()
§Notes
Products should take care to limit access to this protocol, as events injected with this protocol are indistinguishable from those coming from physical devices.
Trait Implementations§
Source§impl Debug for KeyEventInjector
impl Debug for KeyEventInjector
Source§impl Discoverable for KeyEventInjector
impl Discoverable for KeyEventInjector
Source§const PROTOCOL_NAME: &'static str = "fuchsia.ui.input3.KeyEventInjector"
const PROTOCOL_NAME: &'static str = "fuchsia.ui.input3.KeyEventInjector"
The service name to use to connect to this discoverable protocol.
Source§impl<___H, ___T> DispatchClientMessage<___H, ___T> for KeyEventInjectorwhere
___H: KeyEventInjectorClientHandler<___T> + Send,
___T: Transport,
impl<___H, ___T> DispatchClientMessage<___H, ___T> for KeyEventInjectorwhere
___H: KeyEventInjectorClientHandler<___T> + Send,
___T: Transport,
Source§impl<___H, ___T> DispatchLocalClientMessage<___H, ___T> for KeyEventInjectorwhere
___H: KeyEventInjectorLocalClientHandler<___T>,
___T: Transport,
impl<___H, ___T> DispatchLocalClientMessage<___H, ___T> for KeyEventInjectorwhere
___H: KeyEventInjectorLocalClientHandler<___T>,
___T: Transport,
Source§impl<___H, ___T> DispatchLocalServerMessage<___H, ___T> for KeyEventInjectorwhere
___H: KeyEventInjectorLocalServerHandler<___T>,
___T: Transport,
KeyEventInjectorInjectRequest<'de>: for<'de> Decode<<<___T as Transport>::RecvBuffer as AsDecoder<'de>>::Decoder, Constraint = ()>,
impl<___H, ___T> DispatchLocalServerMessage<___H, ___T> for KeyEventInjectorwhere
___H: KeyEventInjectorLocalServerHandler<___T>,
___T: Transport,
KeyEventInjectorInjectRequest<'de>: for<'de> Decode<<<___T as Transport>::RecvBuffer as AsDecoder<'de>>::Decoder, Constraint = ()>,
Source§impl<___H, ___T> DispatchServerMessage<___H, ___T> for KeyEventInjectorwhere
___H: KeyEventInjectorServerHandler<___T> + Send,
___T: Transport,
KeyEventInjectorInjectRequest<'de>: for<'de> Decode<<<___T as Transport>::RecvBuffer as AsDecoder<'de>>::Decoder, Constraint = ()>,
impl<___H, ___T> DispatchServerMessage<___H, ___T> for KeyEventInjectorwhere
___H: KeyEventInjectorServerHandler<___T> + Send,
___T: Transport,
KeyEventInjectorInjectRequest<'de>: for<'de> Decode<<<___T as Transport>::RecvBuffer as AsDecoder<'de>>::Decoder, Constraint = ()>,
Source§impl<___T> HasConnectionHandles<___T> for KeyEventInjectorwhere
___T: Transport,
impl<___T> HasConnectionHandles<___T> for KeyEventInjectorwhere
___T: Transport,
Source§impl HasTransport for KeyEventInjector
Available on Fuchsia only.
impl HasTransport for KeyEventInjector
Available on Fuchsia only.
Source§impl PartialEq for KeyEventInjector
impl PartialEq for KeyEventInjector
impl StructuralPartialEq for KeyEventInjector
Auto Trait Implementations§
impl Freeze for KeyEventInjector
impl RefUnwindSafe for KeyEventInjector
impl Send for KeyEventInjector
impl Sync for KeyEventInjector
impl Unpin for KeyEventInjector
impl UnsafeUnpin for KeyEventInjector
impl UnwindSafe for KeyEventInjector
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]