Add transmission done query mechanism to embedded-io serial traits (nonblocking flush).
还没有人认领这个 Issue。
评估
- 难度
- 4/5
- 预计耗时
- 3-5 天
- 新手友好度
- 45/100
- Issue 类型
- 功能
- 描述清晰度
- 基本清楚
- 活跃度
- 停滞
- 技术栈
- rust
- 领域
- embedded-iot
调研方向
Start with the embedded-io serial traits and blocking flush() in src/lib.rs, then compare the ReadReady and WriteReady traits and the embedded-io-async boundary. Determine the appropriate nonblocking transmission-completion mechanism for serial traits. Done means the traits support checking transmission completion without blocking while preserving the existing blocking API, with coverage for the new behavior.
由索引模型根据 Issue 内容生成。
描述
The original serial traits supported the flush() -> nb::Result<> variant that could return WouldBlock. This was useful in async code that could wait for serial TxDone interrupt to trigger before checking again.
The traits in embedded-io only have blocking flush() call.
It could be argued that embedded-io contains only the blocking traits and embedded-io-async should be implemented for the non-blocking variants. However the ReadReady and WriteReady traits show that the non-blocking use case is important too.
- 主要语言
- Rust
- 星标
- 2.7k
- 派生
- 283
- PR 合并指标
- 30 天内没有已合并 PR
环境准备
这个项目没有提供开发容器、Dockerfile 或贡献指南,环境需要你自己搭建:先看它的 README,通用步骤见我们的新手贡献指南。
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
rust-embedded/embedded-hal 的其他 Issue
-
难度 2/5 1-3 小时 新手友好度 75/100
rust-embedded/embedded-hal#742 · 1 条评论 ·
-
难度 5/5 一周以上 新手友好度 30/100
rust-embedded/embedded-hal#747 · 5 条评论 · 1 个 reaction ·
-
难度 5/5 一周以上 新手友好度 35/100
rust-embedded/embedded-hal#746 · 2 条评论 · 1 个 reaction ·
-
难度 4/5 3-5 天 新手友好度 48/100
rust-embedded/embedded-hal#745 · 1 个 reaction ·
-
难度 2/5 1-3 小时 新手友好度 55/100
rust-embedded/embedded-hal#744 · 1 条评论 ·
查看 rust-embedded/embedded-hal 的全部 Issue
相似的 Issue
-
难度 1/5 1 小时以内 新手友好度 67/100
rust-bitcoin/rust-bitcoin#7089 · 1 条评论 · 1 个 reaction ·
维护者通常 2 天内回复
-
area/tools bug session-analysis
难度 2/5 1-3 小时 新手友好度 78/100
维护者通常 1 天内回复
-
[Bug]: Python OpenTelemetrySectionConfig has no file_sinks可能重新可做 关联的 PR 已关闭且未合并。 未关闭
难度 2/5 1-3 小时 新手友好度 76/100
NVIDIA/NeMo-Relay#1514 ·
维护者通常 1 天内回复
-
prompting proposal tool triaged
难度 2/5 1-3 小时 新手友好度 78/100
can1357/oh-my-pi#17041 · 1 条评论 ·
维护者通常 1 天内回复
-
难度 1/5 1 小时以内 新手友好度 84/100
nix-community/fenix#262 ·