pub enum OpenFileLimitError {
GetLimitFailed(Errno),
NegativeSoftLimit {
value: rlim_t,
},
AlreadySufficient {
current: u64,
target: u64,
},
SetLimitFailed {
current: u64,
target: u64,
source: Errno,
},
}Expand description
Errors that can occur when adjusting resource limits.
Variants§
Trait Implementations§
Source§impl Debug for OpenFileLimitError
impl Debug for OpenFileLimitError
Source§impl Display for OpenFileLimitError
impl Display for OpenFileLimitError
Source§impl Error for OpenFileLimitError
impl Error for OpenFileLimitError
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()
Auto Trait Implementations§
impl Freeze for OpenFileLimitError
impl RefUnwindSafe for OpenFileLimitError
impl Send for OpenFileLimitError
impl Sync for OpenFileLimitError
impl Unpin for OpenFileLimitError
impl UnwindSafe for OpenFileLimitError
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