rustix::net::netdevice::index_to_name
is returning String
#1393
Labels
enhancement
New feature or request
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-allocatedString
.If we change the returning type to an inlined array or somehow a wrapper over
[u8; 16]
, we can remove thealloc
requirement.The text was updated successfully, but these errors were encountered: