pub fn descriptor_limit() -> Option<usize>
The process’s soft limit on open file descriptors (RLIMIT_NOFILE on Linux); None where there is no such limit to watch (Windows) or it can’t be read.
RLIMIT_NOFILE
None