Enum bottomless_pit::engine_handle::BuildError
source · pub enum BuildError {
WindowOsError(OsError),
CreateSurfaceError(CreateSurfaceError),
FailedToCreateAdapter,
RequestDeviceError(RequestDeviceError),
}Expand description
All the errors that can occur when creating core engine resources
Variants§
WindowOsError(OsError)
Occurs when the operating system cannot do certain actions, typically means the window could not be created.
CreateSurfaceError(CreateSurfaceError)
Happens when the surface cannont be created. This can happen on certian OS’s or when the browser does not suport WebGL
FailedToCreateAdapter
Occurs when the WGPU adapter cannot be found.
RequestDeviceError(RequestDeviceError)
Occurs when the WGPU device cannot be made. This usually means the OS does not support the minimum graphics features.
Trait Implementations§
source§impl Debug for BuildError
impl Debug for BuildError
source§impl Display for BuildError
impl Display for BuildError
source§impl Error for BuildError
impl Error for BuildError
1.30.0 · 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 BuildError
impl From<CreateSurfaceError> for BuildError
source§fn from(value: CreateSurfaceError) -> Self
fn from(value: CreateSurfaceError) -> Self
Converts to this type from the input type.
source§impl From<OsError> for BuildError
impl From<OsError> for BuildError
source§impl From<RequestDeviceError> for BuildError
impl From<RequestDeviceError> for BuildError
source§fn from(value: RequestDeviceError) -> Self
fn from(value: RequestDeviceError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl !RefUnwindSafe for BuildError
impl Send for BuildError
impl Sync for BuildError
impl Unpin for BuildError
impl !UnwindSafe for BuildError
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