pub enum WgpuInitError {
NoAdapter,
NotAvailable,
DeviceRequestFailed(String),
FeatureDisabled,
DeviceRequest(String),
InvalidHandle(usize),
PoisonedLock,
}Expand description
Error returned when the wgpu backend cannot be initialised.
Variants§
NoAdapter
No compatible GPU adapter was found.
NotAvailable
The wgpu-backend feature is not enabled; this is a stub build.
DeviceRequestFailed(String)
The device request failed (e.g. out of memory).
FeatureDisabled
A required GPU feature is disabled or not supported.
DeviceRequest(String)
Device creation failed with the given error string.
InvalidHandle(usize)
A buffer handle is out of range.
PoisonedLock
A mutex was poisoned (should not occur in practice).
Trait Implementations§
Source§impl Clone for WgpuInitError
impl Clone for WgpuInitError
Source§fn clone(&self) -> WgpuInitError
fn clone(&self) -> WgpuInitError
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for WgpuInitError
impl Debug for WgpuInitError
Source§impl Display for WgpuInitError
impl Display for WgpuInitError
Source§impl Error for WgpuInitError
impl Error for WgpuInitError
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 PartialEq for WgpuInitError
impl PartialEq for WgpuInitError
Source§fn eq(&self, other: &WgpuInitError) -> bool
fn eq(&self, other: &WgpuInitError) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for WgpuInitError
Auto Trait Implementations§
impl Freeze for WgpuInitError
impl RefUnwindSafe for WgpuInitError
impl Send for WgpuInitError
impl Sync for WgpuInitError
impl Unpin for WgpuInitError
impl UnsafeUnpin for WgpuInitError
impl UnwindSafe for WgpuInitError
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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