Struct procinfo::pid::Limits[][src]

pub struct Limits {
    pub max_cpu_time: Limit<Duration>,
    pub max_file_size: Limit<u64>,
    pub max_data_size: Limit<usize>,
    pub max_stack_size: Limit<usize>,
    pub max_core_file_size: Limit<usize>,
    pub max_resident_set: Limit<usize>,
    pub max_processes: Limit<usize>,
    pub max_open_files: Limit<usize>,
    pub max_locked_memory: Limit<usize>,
    pub max_address_space: Limit<usize>,
    pub max_file_locks: Limit<usize>,
    pub max_pending_signals: Limit<usize>,
    pub max_msgqueue_size: Limit<usize>,
    pub max_nice_priority: Limit<usize>,
    pub max_realtime_priority: Limit<usize>,
    pub max_realtime_timeout: Limit<Duration>,
}

Process limits information See man 2 getrlimit.

Fields

max_cpu_time: Limit<Duration>

The maximum CPU time a process can use.

max_file_size: Limit<u64>

The maximum size of files that the process may create in bytes.

max_data_size: Limit<usize>

The maximum size of the process’s data segment in bytes.

max_stack_size: Limit<usize>

The maximum size of the process stack in bytes.

max_core_file_size: Limit<usize>

Maximum size of a core file in bytes.

max_resident_set: Limit<usize>

Specifies the limit of the process’s resident set in bytes.

max_processes: Limit<usize>

The maximum number of processes (or, more precisely on Linux, threads) that can be created for the real user ID of the calling process.

max_open_files: Limit<usize>

Specifies a value one greater than the maximum file descriptor number that can be opened by this process.

max_locked_memory: Limit<usize>

The maximum number of bytes of memory that may be locked into RAM.

max_address_space: Limit<usize>

The maximum size of the process’s virtual memory (address space) in bytes.

max_file_locks: Limit<usize>

A limit on the combined number of locks and leases that this process may establish.

max_pending_signals: Limit<usize>

Specifies the limit on the number of signals that may be queued for the real user ID of the calling process.

max_msgqueue_size: Limit<usize>

Specifies the limit on the number of bytes that can be allocated for POSIX message queues for the real user ID of the calling process.

max_nice_priority: Limit<usize>

Specifies a ceiling to which the process’s nice value can be raised.

max_realtime_priority: Limit<usize>

Specifies a limit on the amount of CPU time that a process scheduled under a real-time scheduling policy may consume without making a blocking system call.

max_realtime_timeout: Limit<Duration>

Specifies a ceiling on the real-time priority that may be set for this process.

Trait Implementations

impl Clone for Limits[src]

impl Copy for Limits[src]

impl Debug for Limits[src]

impl Eq for Limits[src]

impl Hash for Limits[src]

impl PartialEq<Limits> for Limits[src]

impl StructuralEq for Limits[src]

impl StructuralPartialEq for Limits[src]

Auto Trait Implementations

impl RefUnwindSafe for Limits

impl Send for Limits

impl Sync for Limits

impl Unpin for Limits

impl UnwindSafe for Limits

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.