pub enum EventLoopError {
NotSupported(NotSupportedError),
Os(OsError),
RecreationAttempt,
ExitFailure(i32),
}
Expand description
A general error that may occur while running the Winit event loop
Variants§
NotSupported(NotSupportedError)
The operation is not supported by the backend.
Os(OsError)
The OS cannot perform the operation.
RecreationAttempt
The event loop can’t be re-created.
ExitFailure(i32)
Application has exit with an error status.
Trait Implementations§
Source§impl Debug for EventLoopError
impl Debug for EventLoopError
Source§impl Display for EventLoopError
impl Display 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()
Auto Trait Implementations§
impl Freeze for EventLoopError
impl RefUnwindSafe for EventLoopError
impl Send for EventLoopError
impl Sync for EventLoopError
impl Unpin 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