Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rust Trait enhancements #9

Open
coder137 opened this issue Apr 5, 2023 · 0 comments
Open

Rust Trait enhancements #9

coder137 opened this issue Apr 5, 2023 · 0 comments
Labels
stable-rust-blocking Feature not yet present in stable rust

Comments

@coder137
Copy link
Owner

coder137 commented Apr 5, 2023

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);
}
@coder137 coder137 added the stable-rust-blocking Feature not yet present in stable rust label Apr 6, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
stable-rust-blocking Feature not yet present in stable rust
Projects
None yet
Development

No branches or pull requests

1 participant