Expand description
§HID Gadget Emulation in Rust
Rust crate for interfacing with Linux HID Gadget devices (/dev/hidgX).
Since all functionality is dependent on Linux function calls, this crate only compiles for Linux systems.
§Crates
- hidg-core - core abstractions and low level interface (not for end users)
- hidg - std interface which supports synchronous operation only
- tokio-hidg - async interface for tokio async runtime
- async-hidg - async interface for other async runtimes
§Features
- fromstr - implements core::str::FromStr implementation for some types
- display - implements std::fmt::Display implementation for some types
- phf - use phf in core::str::FromStr trait implementations
- serde - enables serde support for some types
- keyboard - enables keyboard class support
- mouse - enables mouse class support
Structs§
- Button mask
- Wrapper to hide internals
- Changes between keyboard input reports
- Keyboard HID class
- Keyboard input report
- Keyboard output report
- Changes between keyboard output reports
- LED mask
- Modifier mask
- Mouse HID class
- Mouse input report
- Changes between mouse input reports
- Keyboard output report
- Key/button/LED state change event
- Unknown error
- Pointer/cursor position change event
Enums§
- Button code
- Key code
- LED code
- Change between mouse input reports
Traits§
- Device path trait
- Device class trait
Functions§
- Check read report length
- Check write report length
Type Aliases§
- A specialized
Result
type for I/O operations.