Skip to content

Rust Trait enhancements #9

Open
@coder137

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions