pub struct EventLoopError(/* private fields */);Expand description
The error winit’s event loop can fail with when starting or running.
Wraps winit’s own EventLoopError opaquely rather than re-exporting it: a winit point
release can add or remove variants on its error type without that being a breaking change for
winit itself, but re-exporting it verbatim would make that a breaking change here too, since
downstream code matching on it would stop compiling. Nothing in this crate’s public API names
a raw winit type as a result.
Use fmt::Display for a human-readable message, or
std::error::Error::source to reach the underlying winit error for programmatic
inspection (downcasting, logging its Debug form, etc.).
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
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 !RefUnwindSafe for EventLoopError
impl !UnwindSafe for EventLoopError
impl Freeze for EventLoopError
impl Send for EventLoopError
impl Sync for EventLoopError
impl Unpin for EventLoopError
impl UnsafeUnpin 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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Convert
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Convert
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Convert
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.