Device macro to generate stateful and publish variants of device specific poll inputs.

This commit is contained in:
Zachary Sunforge
2023-06-19 19:24:47 -07:00
parent 9ea0e69d92
commit 0c7839491d
8 changed files with 283 additions and 156 deletions

View File

@ -1,4 +1,5 @@
pub trait Poll {
type Value: Copy;
pub trait Poll<T: Copy> {
async fn poll() -> T;
async fn poll(&self) -> Self::Value;
}