Skip to content

Rust Trait enhancements #9

Description

@coder137

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);
}

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions