AeroRust / AeroRust/sbus-rs

Async/Blocking impls

Đang mở
#2 0 bình luận 0 reaction 0 người được giao Xem trên GitHub
enhancement
Ngôn ngữ chính
Rust
Star
8
Fork
2
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Mô tả

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.

Hướng dẫn đóng góp

Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.