AeroRust / AeroRust/sbus-rs

Async/Blocking impls

オープン
#2 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る
enhancement
主要言語
Rust
スター
8
フォーク
2
PR マージ指標
30日以内にマージされた PR はありません

説明

Let's use a single interface and implement different Modes on the same struct depending on the passed `Read` instance.

As an example, you can take a look at https://docs.embassy.dev/embassy-rp/git/rp2040/spi/struct.Spi.html
Although the use case is a bit different (implementing the SPI driver at hal level) we can use the exact same approach with `Blocking` / `Async` modes and use the same struct with 2 different (or more, see #1 ) implementations.

コントリビューションガイド

このリポジトリのコントリビューションガイドは索引されていません

評価

この issue はまだ評価されていません。

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。