pub enum Error {
AppCreation(Box<dyn Error + Send + Sync>),
OpenGL(PainterError),
Wgpu(WgpuError),
}Expand description
The different problems that can occur when trying to run eframe.
Variants§
AppCreation(Box<dyn Error + Send + Sync>)
Something went wrong in user code when creating the app.
OpenGL(PainterError)
An error from [glutin] when using glow.
Wgpu(WgpuError)
An error from wgpu.
Trait Implementations§
Source§impl Error for Error
impl Error for Error
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<PainterError> for Error
Available on crate feature glow only.
impl From<PainterError> for Error
Available on crate feature
glow only.Source§fn from(err: PainterError) -> Self
fn from(err: PainterError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl !RefUnwindSafe for Error
impl !UnwindSafe for Error
impl Forget for Error
impl Freeze for Errorwhere
*const dyn Error + Send + Sync is !null: Freeze,
PhantomData<dyn Error + Send + Sync>: Freeze,
*const u8 is !null: Freeze,
PhantomData<u8>: Freeze,
InternalBitFlags: Freeze,
*const DeviceMismatch is !null: Freeze,
PhantomData<DeviceMismatch>: Freeze,
&'static str: Freeze,
String: Freeze,
*const ParseError is !null: Freeze,
PhantomData<ParseError>: Freeze,
*const WithSpan<ValidationError> is !null: Freeze,
PhantomData<WithSpan<ValidationError>>: Freeze,
InternalBitFlags: Freeze,
InternalBitFlags: Freeze,
InternalBitFlags: Freeze,
InternalBitFlags: Freeze,
InternalBitFlags: Freeze,
NonZero<u64>: Freeze,
PhantomData<MaxVertexShaderOutputDeduction>: Freeze,
PhantomData<MaxFragmentShaderInputDeduction>: Freeze,
PhantomData<(Backend, InstanceError)>: Freeze,
impl Move for Error
impl Send for Errorwhere
BoxRaw<dyn Error + Send + Sync>: Send,
RawVecInner: Send,
InternalBitFlags: Send,
BoxRaw<DeviceMismatch>: Send,
&'static str: Send,
String: Send,
BoxRaw<ParseError>: Send,
BoxRaw<WithSpan<ValidationError>>: Send,
InternalBitFlags: Send,
InternalBitFlags: Send,
InternalBitFlags: Send,
InternalBitFlags: Send,
InternalBitFlags: Send,
NonZero<u64>: Send,
RawTable<(Backend, InstanceError)>: Send,
impl Sync for Errorwhere
BoxRaw<dyn Error + Send + Sync>: Sync,
RawVecInner: Sync,
InternalBitFlags: Sync,
BoxRaw<DeviceMismatch>: Sync,
String: Sync,
BoxRaw<ParseError>: Sync,
BoxRaw<WithSpan<ValidationError>>: Sync,
InternalBitFlags: Sync,
InternalBitFlags: Sync,
InternalBitFlags: Sync,
InternalBitFlags: Sync,
InternalBitFlags: Sync,
NonZero<u64>: Sync,
RawTable<(Backend, InstanceError)>: Sync,
impl Unpin for Errorwhere
Box<dyn Error + Send + Sync>: Unpin,
*const u8 is !null: Unpin,
InternalBitFlags: Unpin,
Box<DeviceMismatch>: Unpin,
&'static str: Unpin,
String: Unpin,
Box<ParseError>: Unpin,
Box<WithSpan<ValidationError>>: Unpin,
InternalBitFlags: Unpin,
InternalBitFlags: Unpin,
InternalBitFlags: Unpin,
InternalBitFlags: Unpin,
InternalBitFlags: Unpin,
NonZero<u64>: Unpin,
Arc<dyn Error + Send + Sync>: Unpin,
impl UnsafeUnpin for Errorwhere
*const dyn Error + Send + Sync is !null: UnsafeUnpin,
PhantomData<dyn Error + Send + Sync>: UnsafeUnpin,
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
InternalBitFlags: UnsafeUnpin,
*const DeviceMismatch is !null: UnsafeUnpin,
PhantomData<DeviceMismatch>: UnsafeUnpin,
&'static str: UnsafeUnpin,
String: UnsafeUnpin,
*const ParseError is !null: UnsafeUnpin,
PhantomData<ParseError>: UnsafeUnpin,
*const WithSpan<ValidationError> is !null: UnsafeUnpin,
PhantomData<WithSpan<ValidationError>>: UnsafeUnpin,
InternalBitFlags: UnsafeUnpin,
InternalBitFlags: UnsafeUnpin,
InternalBitFlags: UnsafeUnpin,
InternalBitFlags: UnsafeUnpin,
InternalBitFlags: UnsafeUnpin,
NonZeroU64Inner: UnsafeUnpin,
PhantomData<MaxVertexShaderOutputDeduction>: UnsafeUnpin,
PhantomData<MaxFragmentShaderInputDeduction>: UnsafeUnpin,
PhantomData<(Backend, InstanceError)>: UnsafeUnpin,
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more