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§
Source§impl Clone for GetRLimitError
impl Clone for GetRLimitError
Source§fn clone(&self) -> GetRLimitError
fn clone(&self) -> GetRLimitError
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for GetRLimitError
impl Debug for GetRLimitError
Source§impl Display for GetRLimitError
impl Display for GetRLimitError
Source§impl Error for GetRLimitError
impl Error for GetRLimitError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
Source§impl Hash for GetRLimitError
impl Hash for GetRLimitError
Source§impl Ord for GetRLimitError
impl Ord for GetRLimitError
Source§fn cmp(&self, other: &GetRLimitError) -> Ordering
fn cmp(&self, other: &GetRLimitError) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for GetRLimitError
impl PartialEq for GetRLimitError
Source§impl PartialOrd for GetRLimitError
impl PartialOrd for GetRLimitError
impl Copy for GetRLimitError
impl Eq for GetRLimitError
impl StructuralPartialEq for GetRLimitError
Auto Trait Implementations§
impl Freeze for GetRLimitError
impl RefUnwindSafe for GetRLimitError
impl Send for GetRLimitError
impl Sync for GetRLimitError
impl Unpin for GetRLimitError
impl UnwindSafe for GetRLimitError
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more