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 adepts
- async-std-hidg - async interface for async-std adepts
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
- 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 class trait
Functions
- Check read report length
- Check write report length
- Open device by path or name
Type Definitions
- A specialized
Resulttype for I/O operations.