proc_self_fd

Function proc_self_fd 

Source
pub(crate) fn proc_self_fd(fd: impl AsFd) -> String
Expand description

Formats a string like “/proc/self/fd/3” for the given fd. This can be used to work with kernel APIs that don’t directly accept file descriptors.

This call never fails.