Lines Matching defs:Resource
32 /// The Resource enum is platform dependent. Check different platform
57 pub enum Resource {
184 /// * `resource`: The [`Resource`] that we want to get the limits of.
189 /// # use nix::sys::resource::{getrlimit, Resource};
191 /// let (soft_limit, hard_limit) = getrlimit(Resource::RLIMIT_NOFILE).unwrap();
200 /// [`Resource`]: enum.Resource.html
201 pub fn getrlimit(resource: Resource) -> Result<(rlim_t, rlim_t)> {
222 /// * `resource`: The [`Resource`] that we want to set the limits of.
234 /// # use nix::sys::resource::{setrlimit, Resource};
238 /// setrlimit(Resource::RLIMIT_NOFILE, soft_limit, hard_limit).unwrap();
245 /// [`Resource`]: enum.Resource.html
249 resource: Resource,
273 /// Resource usage for the current process.
276 /// Resource usage for all the children that have terminated and been waited for.
281 /// Resource usage for the calling thread.