Function nix::sys::resource::getrlimit [−][src]
Expand description
Get the current processes resource limits
A value of None
indicates the value equals to RLIM_INFINITY
which means
there is no limit.
Parameters
resource
: TheResource
that we want to get the limits of.
Examples
let (soft_limit, hard_limit) = getrlimit(Resource::RLIMIT_NOFILE).unwrap();
println!("current soft_limit: {:?}", soft_limit);
println!("current hard_limit: {:?}", hard_limit);