| 文件 | 最后提交记录 | 最后更新时间 |
|---|---|---|
refactor(agent): consolidate capture manager slots (#1183) | 1 天前 | |
refactor(hid): contain the backend error type behind BackendError `async_hid::HidError` was part of this crate's public API — in `InventoryError`, `GestureError`, `HostSwitchError` and `ChannelPool::open` — which put "openlogi-hid uses async-hid" into its contract rather than its implementation. `openlogi-agent-core` had picked up a dev-dependency on async-hid purely to construct one of those errors in a test. Introduce `backend::BackendError`, a two-variant backend-agnostic error, and convert at the one place that owns the backend (`channel::transport`). Nothing above the transport names `async_hid` any more. Being local to this crate, `BackendError` also clears the orphan rule that forced `classify_hid_error` on `WriteError` and `PairingError`: both are now real `From` impls, so nine `.map_err(|e| classify_hid_error(&e))?` call sites collapse to plain `?`. No wire change: the three error enums touched are not `Serialize`, and `WriteError`/`PairingError` gained a conversion, not a variant. | 18 天前 |
| 文件 | 最后提交记录 | 最后更新时间 |
|---|---|---|
| 1 天前 | ||
| 18 天前 |