Skip to content

[Feature request] Split SerialPort into Writer, Reader and UsbClass #53

@Tnze

Description

@Tnze

It's usually people needs to write and read at the same time. Allowing split Writer and Reader or impl Write and Read on the immutable reference of SerialPort can make it happened.

It's also required by implement embedded-io-async that split UsbClass impl. Because when we .await on the SerialPort, no one can wake it because the ownership is borrowed by read(&mut self) and write(&mut self).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions