Required for this project
Reference
https://github.com/rust-lang/rust/labels/S-tracking-impl-incomplete
91611
Return impl trait in traits
pub trait AsyncGpioIn {
fn poll_read(&self, trigger: GpioValue) -> impl Future<Output = ()>;
}
Marking trait methods async
pub trait AsyncGpioIn {
async fn poll_read(&self, trigger: GpioValue);
}
Required for this project
impl Traitinconstandstaticitems andletbindings rust-lang/rust#63065Reference
https://github.com/rust-lang/rust/labels/S-tracking-impl-incomplete
91611
Return impl trait in traits
Marking trait methods async