pub enum EpollCreateError {
PerProcessFileHandleLimitReached,
SystemWideFileHandleLimitReached,
InsufficientMemory,
SysCallReturnedInvalidFileDescriptor,
UnableToEnableSignalHandling,
UnknownError(i32),
}Expand description
Errors that can occur when EpollBuilder::create() creates a new Epoll.
Variants§
PerProcessFileHandleLimitReached
The process file handle limit has been reached.
SystemWideFileHandleLimitReached
The system wide file handle limit has been reached.
InsufficientMemory
The system has not enough memory to create the Epoll
SysCallReturnedInvalidFileDescriptor
The syscall linux::epoll_create() returned a broken FileDescriptor.
UnableToEnableSignalHandling
EpollBuilder was configured to handle some FetchableSignals but the underlying
SignalFd could not be created.
UnknownError(i32)
An error occurred that was not described in the linux man-page.
Trait Implementations§
Source§impl Clone for EpollCreateError
impl Clone for EpollCreateError
Source§fn clone(&self) -> EpollCreateError
fn clone(&self) -> EpollCreateError
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 EpollCreateError
impl Debug for EpollCreateError
Source§impl Display for EpollCreateError
impl Display for EpollCreateError
Source§impl Error for EpollCreateError
impl Error for EpollCreateError
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 EpollCreateError
impl PartialEq for EpollCreateError
impl Copy for EpollCreateError
impl Eq for EpollCreateError
impl StructuralPartialEq for EpollCreateError
Auto Trait Implementations§
impl Freeze for EpollCreateError
impl RefUnwindSafe for EpollCreateError
impl Send for EpollCreateError
impl Sync for EpollCreateError
impl Unpin for EpollCreateError
impl UnwindSafe for EpollCreateError
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