Struct procinfo::pid::Limit [] [src]

pub struct Limit<T> {
    pub soft: Option<T>,
    pub hard: Option<T>,
}

A resource limit, including a soft and hard bound.

Fields

The soft resource limit.

The kernel enforces that resource usage does not exceed this value.

The hard resource limit.

The kernel allows the soft limit to be raised until this limit using setrlimit.

Trait Implementations

impl<T: Clone> Clone for Limit<T>
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl<T: Copy> Copy for Limit<T>
[src]

impl<T: Debug> Debug for Limit<T>
[src]

Formats the value using the given formatter.

impl<T: PartialEq> PartialEq for Limit<T>
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl<T: Eq> Eq for Limit<T>
[src]

impl<T: Hash> Hash for Limit<T>
[src]

Feeds this value into the given [Hasher]. Read more

Feeds a slice of this type into the given [Hasher]. Read more