pub enum EventLoopError {
Io(Errno),
RootFinished,
StorageAlreadyUsed,
Poisoned,
}Expand description
An error that can be returned from an EventLoop.
Variants§
Io(Errno)
An epoll or kqueue call failed.
RootFinished
EventLoop::drain_events_without_blocking
is called on the EventLoop that has already finished
StorageAlreadyUsed
EventLoop::new is called with a
LoopStorage that has already been used by another
EventLoop. A storage backs at most one event loop for the whole
program, even after that loop has finished.
Poisoned
EventLoop::drain_events_without_blocking
panicked before, the EventLoop may be in an inconsistent state, so it
refuses to run. Its tasks are dropped once it’s dropped.
Trait Implementations§
Source§impl Clone for EventLoopError
impl Clone for EventLoopError
impl Copy for EventLoopError
Source§impl Debug for EventLoopError
impl Debug for EventLoopError
Source§impl Display for EventLoopError
impl Display for EventLoopError
impl Eq for EventLoopError
Source§impl Error for EventLoopError
impl Error for EventLoopError
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 From<Errno> for EventLoopError
impl From<Errno> for EventLoopError
Source§impl PartialEq for EventLoopError
impl PartialEq for EventLoopError
impl StructuralPartialEq for EventLoopError
Auto Trait Implementations§
impl Forget for EventLoopError
impl Freeze for EventLoopError
impl Move for EventLoopError
impl RefUnwindSafe for EventLoopError
impl Send for EventLoopError
impl Sync for EventLoopError
impl Unpin for EventLoopError
impl UnsafeUnpin for EventLoopError
impl UnwindSafe for EventLoopError
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