pub struct InjectKey {
pub is_pressed: bool,
pub key: Key,
}Expand description
Injects a key press or release event into the active app as if it came from the keyboard. Works on both hardware and simulator — used by the passport-drive debug bridge.
Fields§
§is_pressed: bool§key: KeyTrait Implementations§
Source§impl FromScalar<3> for InjectKey
impl FromScalar<3> for InjectKey
fn from_scalar([is_pressed, kind, val]: [u32; 3]) -> Self
Auto Trait Implementations§
impl Freeze for InjectKey
impl RefUnwindSafe for InjectKey
impl Send for InjectKey
impl Sync for InjectKey
impl Unpin for InjectKey
impl UnwindSafe for InjectKey
Blanket Implementations§
§impl<T> ArchivePointee for T
impl<T> ArchivePointee for T
§type ArchivedMetadata = ()
type ArchivedMetadata = ()
The archived version of the pointer metadata for this type.
§fn pointer_metadata(
_: &<T as ArchivePointee>::ArchivedMetadata,
) -> <T as Pointee>::Metadata
fn pointer_metadata( _: &<T as ArchivePointee>::ArchivedMetadata, ) -> <T as Pointee>::Metadata
Converts some archived metadata to the pointer metadata for itself.
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
Source§impl<T> FromScalar<4> for Twhere
T: FromScalar<3>,
impl<T> FromScalar<4> for Twhere
T: FromScalar<3>,
fn from_scalar(value: [u32; 4]) -> T
§impl<T> LayoutRaw for T
impl<T> LayoutRaw for T
§fn layout_raw(_: <T as Pointee>::Metadata) -> Result<Layout, LayoutError>
fn layout_raw(_: <T as Pointee>::Metadata) -> Result<Layout, LayoutError>
Returns the layout of the type.