de-vri-es / serial2-rs

Cross platform serial ports for Rust
Other
48 stars 11 forks source link

Added simple method to the Serialport struct to open all available ports #10

Closed kinire98 closed 1 year ago

kinire98 commented 1 year ago

I added this method that would be nice in order to open all the ports in the device. It's pretty simple. I added the documentation. I don't know if the code is all the idiomatic that could be or the docs are right, but I thought this would be useful

kinire98 commented 1 year ago

Also, I don't know what's best:

DanielJoyce commented 1 year ago

Since this is so trivial to write, I don't know why this would needed in the public api.