usbd-serial icon indicating copy to clipboard operation
usbd-serial copied to clipboard

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

Open Tnze opened this issue 1 month ago • 0 comments

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).

Tnze avatar Jan 24 '25 15:01 Tnze