AeroRust / AeroRust/sbus-rs

Async/Blocking impls

Aperta
#2 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub
enhancement
Lingua principale
Rust
Stelle
8
Fork
2
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Descrizione

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.

Guida per i contributori

Nessuna guida per i contributori indicizzata per questo repository

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.