Skip to main content

max_file_descriptors

Function max_file_descriptors 

Source
pub fn max_file_descriptors() -> Result<(usize, usize)>
Expand description

Returns the soft and hard file-descriptor limits.

The tuple is ordered as the current soft limit followed by the maximum hard limit. Values come from RLIMIT_NOFILE.

ยงPanics

Panics when either platform limit cannot be represented as usize.