The current method to get the interfaces uses the naming convention to guess available wired interfaces.
A known limitation of that method is that the user can rename the interfaces to (almost) anything they want, which would fail the current method.
To overcome this, the library could list the current interfaces instead of trying to guess them by their names, and then, filter them by their type (wired, wireless, etc.).
Might be useful: network-interface crate.
Thanks
The current method to get the interfaces uses the naming convention to guess available wired interfaces.
A known limitation of that method is that the user can rename the interfaces to (almost) anything they want, which would fail the current method.
To overcome this, the library could list the current interfaces instead of trying to guess them by their names, and then, filter them by their type (wired, wireless, etc.).
Might be useful: network-interface crate.
Thanks