[−][src]Enum rctl::Resource
An Enum representing a resource type
Variants
CPU time, in seconds
datasize, in bytes
stack size, in bytes
from the FreeBSD Handbook Chapter 13.13 - Resource Limits:
The maximum size of a process stack. This alone is not sufficient to limit the amount of memory a program may use, so it should be used in conjunction with other limits.
coredump size, in bytes
from the FreeBSD Handbook Chapter 13.13 - Resource Limits:
The limit on the size of a core file generated by a program is subordinate to other limits on disk usage, such as filesize or disk quotas. This limit is often used as a less severe method of controlling disk space consumption. Since users do not generate core files and often do not delete them, this setting may save them from running out of disk space should a large program crash.
resident setsize, in bytes
locked memory, in bytes
from the FreeBSD Handbook Chapter 13.13 - Resource Limits:
The maximum amount of memory a process may request to be locked into main memory using
mlock(2)
. Some system-critical programs, such asamd(8)
, lock into main memory so that if the system begins to swap, they do not contribute to disk thrashing.
number of processes
File descriptor table size
address space limit, in bytes
number of PTYs
swapspace that may be reserved or used, in bytes
number of threads
number of queued SysV messages
SysVmessagequeue size, in bytes
number of SysV message queues
number of SysV semaphores
number of SysV semaphores modified in a single semop(2)
call
number of SysV shared memorysegments
SysVshared memory size, in bytes
wallclock time, in seconds
%CPU, in percents of a single CPU core
filesystem reads, in bytes per second
filesystem writes, in bytes per second
filesystem reads, inoperations per second
filesystem writes, in operations persecond
Implementations
impl Resource
[src]
pub fn as_str(&self) -> &'static str
[src]
Return the string representation of the resource
Examples
use rctl::Resource; assert_eq!(Resource::CpuTime.as_str(), "cputime");
Trait Implementations
impl Clone for Resource
[src]
impl Copy for Resource
[src]
impl Debug for Resource
[src]
impl Display for Resource
[src]
impl Eq for Resource
[src]
impl FromStr for Resource
[src]
type Err = ParseError
The associated error which can be returned from parsing.
fn from_str(s: &str) -> Result<Self, Self::Err>
[src]
impl Hash for Resource
[src]
fn hash<__H: Hasher>(&self, state: &mut __H)
[src]
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
impl<'a> Into<&'static str> for &'a Resource
[src]
impl<'a> Into<String> for &'a Resource
[src]
impl PartialEq<Resource> for Resource
[src]
impl StructuralEq for Resource
[src]
impl StructuralPartialEq for Resource
[src]
Auto Trait Implementations
impl RefUnwindSafe for Resource
impl Send for Resource
impl Sync for Resource
impl Unpin for Resource
impl UnwindSafe for Resource
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,