We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
rustix::net::netdevice::index_to_name
String
Hi, on the Linux and BSD platform, the max interface name length is 16, which is small enough to be inlined instead of a heap-allocated String.
16
If we change the returning type to an inlined array or somehow a wrapper over [u8; 16], we can remove the alloc requirement.
[u8; 16]
alloc