pub enum EpollGetCapacityError {
ProcFileDoesNotExist,
ProcFileReadFailure,
InsufficientPermissions,
InsufficientMemory,
PerProcessFileHandleLimitReached,
SystemWideFileHandleLimitReached,
Interrupt,
InvalidProcFileContent,
UnknownError,
}Expand description
Can be emitted by Epoll::capacity() when the epoll capacity is read from the proc
file system.
Variants§
ProcFileDoesNotExist
The proc file containing the capacity does not exist.
ProcFileReadFailure
The content of the proc file could not be read.
InsufficientPermissions
The process does not have the permission to open the proc file for reading.
InsufficientMemory
Insufficient memory to read from the proc file.
PerProcessFileHandleLimitReached
The process file handle limit has been reached.
SystemWideFileHandleLimitReached
The system wide file handle limit has been reached.
Interrupt
FetchableSignal::Interrupt was received (SIGINT).
InvalidProcFileContent
The proc file does not contain a number but something else.
UnknownError
An undocumented error occurred.
Trait Implementations§
Source§impl Clone for EpollGetCapacityError
impl Clone for EpollGetCapacityError
Source§fn clone(&self) -> EpollGetCapacityError
fn clone(&self) -> EpollGetCapacityError
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 EpollGetCapacityError
impl Debug for EpollGetCapacityError
Source§impl Display for EpollGetCapacityError
impl Display for EpollGetCapacityError
Source§impl Error for EpollGetCapacityError
impl Error for EpollGetCapacityError
1.30.0 · 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 PartialEq for EpollGetCapacityError
impl PartialEq for EpollGetCapacityError
impl Copy for EpollGetCapacityError
impl Eq for EpollGetCapacityError
impl StructuralPartialEq for EpollGetCapacityError
Auto Trait Implementations§
impl Freeze for EpollGetCapacityError
impl RefUnwindSafe for EpollGetCapacityError
impl Send for EpollGetCapacityError
impl Sync for EpollGetCapacityError
impl Unpin for EpollGetCapacityError
impl UnwindSafe for EpollGetCapacityError
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