AeroRust / AeroRust/sbus-rs

Async/Blocking impls

Offen
#2 0 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen
enhancement
Vorherrschende Sprache
Rust
Sterne
8
Forks
2
PR-Merge-Kennzahlen
Keine gemergten PRs in 30 T.

Beschreibung

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.

Beitragsleitfaden

Für dieses Repository ist kein Beitragsleitfaden indexiert

Bewertung

Dieses Issue wurde noch nicht bewertet.

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.