Enum posix_resources::GetRLimitError [−][src]
pub enum GetRLimitError {
Invalid,
Permission,
}
Expand description
An error value returned from the failure of [‘get_resource_limit’].
Variants
Invalid
[EINVAL] An invalid resource was specified; or in a setrlimit() call, the new rlim_cur exceeds the new rlim_max.
Permission
[EPERM] The limit specified to setrlimit() would have raised the maximum limit value, and the calling process does not have appropriate privileges.
Trait Implementations
This method returns an ordering between self
and other
values if one exists. Read more
This method tests less than (for self
and other
) and is used by the <
operator. Read more
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
This method tests greater than (for self
and other
) and is used by the >
operator. Read more
Auto Trait Implementations
impl RefUnwindSafe for GetRLimitError
impl Send for GetRLimitError
impl Sync for GetRLimitError
impl Unpin for GetRLimitError
impl UnwindSafe for GetRLimitError
Blanket Implementations
Mutably borrows from an owned value. Read more