pub enum GpuInitError {
NoAdapter(RequestAdapterError),
RequestDevice(RequestDeviceError),
}Expand description
Error returned when headless WGPU initialization fails.
Variants§
NoAdapter(RequestAdapterError)
RequestDevice(RequestDeviceError)
Trait Implementations§
Source§impl Debug for GpuInitError
impl Debug for GpuInitError
Source§impl Display for GpuInitError
impl Display for GpuInitError
Source§impl Error for GpuInitError
impl Error for GpuInitError
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 Forget for GpuInitError
impl Freeze for GpuInitErrorwhere
InternalBitFlags: Freeze,
*const DeviceMismatch is !null: Freeze,
PhantomData<DeviceMismatch>: Freeze,
&'static str: Freeze,
String: Freeze,
*const u8 is !null: Freeze,
PhantomData<u8>: 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,
impl Move for GpuInitError
impl RefUnwindSafe for GpuInitErrorwhere
InternalBitFlags: RefUnwindSafe,
String: RefUnwindSafe,
NonZero<u32>: RefUnwindSafe,
InternalBitFlags: RefUnwindSafe,
InternalBitFlags: RefUnwindSafe,
InternalBitFlags: RefUnwindSafe,
InternalBitFlags: RefUnwindSafe,
InternalBitFlags: RefUnwindSafe,
InternalBitFlags: RefUnwindSafe,
InternalBitFlags: RefUnwindSafe,
InternalBitFlags: RefUnwindSafe,
InternalBitFlags: RefUnwindSafe,
InternalBitFlags: RefUnwindSafe,
InternalBitFlags: RefUnwindSafe,
InternalBitFlags: RefUnwindSafe,
NonZero<u64>: RefUnwindSafe,
impl Send for GpuInitErrorwhere
InternalBitFlags: Send,
BoxRaw<DeviceMismatch>: Send,
&'static str: Send,
String: Send,
RawVecInner: Send,
BoxRaw<ParseError>: Send,
BoxRaw<WithSpan<ValidationError>>: Send,
InternalBitFlags: Send,
InternalBitFlags: Send,
InternalBitFlags: Send,
InternalBitFlags: Send,
InternalBitFlags: Send,
NonZero<u64>: Send,
impl Sync for GpuInitError
impl Unpin for GpuInitErrorwhere
InternalBitFlags: Unpin,
Box<DeviceMismatch>: Unpin,
&'static str: Unpin,
String: Unpin,
*const u8 is !null: Unpin,
Box<ParseError>: Unpin,
Box<WithSpan<ValidationError>>: Unpin,
InternalBitFlags: Unpin,
InternalBitFlags: Unpin,
InternalBitFlags: Unpin,
InternalBitFlags: Unpin,
InternalBitFlags: Unpin,
NonZero<u64>: Unpin,
impl UnsafeUnpin for GpuInitErrorwhere
InternalBitFlags: UnsafeUnpin,
*const DeviceMismatch is !null: UnsafeUnpin,
PhantomData<DeviceMismatch>: UnsafeUnpin,
&'static str: UnsafeUnpin,
String: UnsafeUnpin,
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: 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,
impl UnwindSafe for GpuInitErrorwhere
InternalBitFlags: UnwindSafe,
BoxRaw<DeviceMismatch>: UnwindSafe,
&'static str: UnwindSafe,
String: UnwindSafe,
RawVecInner: UnwindSafe,
BoxRaw<ParseError>: UnwindSafe,
BoxRaw<WithSpan<ValidationError>>: UnwindSafe,
InternalBitFlags: UnwindSafe,
InternalBitFlags: UnwindSafe,
InternalBitFlags: UnwindSafe,
InternalBitFlags: UnwindSafe,
InternalBitFlags: UnwindSafe,
NonZero<u64>: UnwindSafe,
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