libremicro 0.1.0

Direct, typed access to the stock Codex Micro HID interface
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
//! Crate-private HID transport boundary.

use std::time::Duration;

use crate::Result;

#[cfg(target_os = "linux")]
pub(crate) mod linux;

pub(crate) trait Transport {
    fn write_report(&mut self, report: &[u8; 64]) -> Result<()>;
    fn read_report(&mut self, timeout: Duration) -> Result<Option<Vec<u8>>>;
}