pub enum WgpuError {
NoSuitableAdapterFound,
NoSurfaceFormatsAvailable,
RequestDeviceError(RequestDeviceError),
CreateSurfaceError(CreateSurfaceError),
HandleError(HandleError),
}
Expand description
An error produced by egui-wgpu.
Variants§
NoSuitableAdapterFound
NoSurfaceFormatsAvailable
RequestDeviceError(RequestDeviceError)
CreateSurfaceError(CreateSurfaceError)
HandleError(HandleError)
Trait Implementations§
source§impl Error for WgpuError
impl Error for WgpuError
source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
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<CreateSurfaceError> for WgpuError
impl From<CreateSurfaceError> for WgpuError
source§fn from(source: CreateSurfaceError) -> Self
fn from(source: CreateSurfaceError) -> Self
Converts to this type from the input type.
source§impl From<HandleError> for WgpuError
impl From<HandleError> for WgpuError
source§fn from(source: HandleError) -> Self
fn from(source: HandleError) -> Self
Converts to this type from the input type.
source§impl From<RequestDeviceError> for WgpuError
impl From<RequestDeviceError> for WgpuError
source§fn from(source: RequestDeviceError) -> Self
fn from(source: RequestDeviceError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for WgpuError
impl !RefUnwindSafe for WgpuError
impl Send for WgpuError
impl Sync for WgpuError
impl Unpin for WgpuError
impl !UnwindSafe for WgpuError
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