Device macro to generate stateful and publish variants of device specific poll inputs.
This commit is contained in:
@ -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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user