pub enum GpuError {
NoAdapter(RequestAdapterError),
NoDevice(RequestDeviceError),
Poll(PollError),
Readback(MapRangeError),
}Variants§
NoAdapter(RequestAdapterError)
NoDevice(RequestDeviceError)
Poll(PollError)
Readback(MapRangeError)
Trait Implementations§
Source§impl Error for GpuError
impl Error for GpuError
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<MapRangeError> for GpuError
impl From<MapRangeError> for GpuError
Source§fn from(source: MapRangeError) -> Self
fn from(source: MapRangeError) -> Self
Converts to this type from the input type.
Source§impl From<RequestAdapterError> for GpuError
impl From<RequestAdapterError> for GpuError
Source§fn from(source: RequestAdapterError) -> Self
fn from(source: RequestAdapterError) -> Self
Converts to this type from the input type.
Source§impl From<RequestDeviceError> for GpuError
impl From<RequestDeviceError> for GpuError
Source§fn from(source: RequestDeviceError) -> Self
fn from(source: RequestDeviceError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Forget for GpuError
impl Freeze for GpuErrorwhere
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 GpuError
impl RefUnwindSafe for GpuErrorwhere
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 GpuErrorwhere
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 GpuError
impl Unpin for GpuErrorwhere
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 GpuErrorwhere
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 GpuErrorwhere
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