#[non_exhaustive]pub enum DeviceError {
Lost,
OutOfMemory,
DeviceMismatch(Box<DeviceMismatch>),
}Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Implementations§
Source§impl DeviceError
impl DeviceError
Sourcepub fn from_hal(error: DeviceError) -> Self
pub fn from_hal(error: DeviceError) -> Self
Only use this function in contexts where there is no Device.
Use Device::handle_hal_error otherwise.
Trait Implementations§
Source§impl Clone for DeviceError
impl Clone for DeviceError
Source§fn clone(&self) -> DeviceError
fn clone(&self) -> DeviceError
Returns a duplicate of the value. Read more
1.0.0 · 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 DeviceError
impl Debug for DeviceError
Source§impl<'de> Deserialize<'de> for DeviceError
impl<'de> Deserialize<'de> for DeviceError
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Display for DeviceError
impl Display for DeviceError
Source§impl Error for DeviceError
impl Error for DeviceError
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<Box<DeviceMismatch>> for DeviceError
impl From<Box<DeviceMismatch>> for DeviceError
Source§fn from(source: Box<DeviceMismatch>) -> Self
fn from(source: Box<DeviceMismatch>) -> Self
Converts to this type from the input type.
Source§impl From<DeviceError> for BlasPrepareCompactError
impl From<DeviceError> for BlasPrepareCompactError
Source§fn from(source: DeviceError) -> Self
fn from(source: DeviceError) -> Self
Converts to this type from the input type.
Source§impl From<DeviceError> for BufferAccessError
impl From<DeviceError> for BufferAccessError
Source§fn from(source: DeviceError) -> Self
fn from(source: DeviceError) -> Self
Converts to this type from the input type.
Source§impl From<DeviceError> for BuildAccelerationStructureError
impl From<DeviceError> for BuildAccelerationStructureError
Source§fn from(source: DeviceError) -> Self
fn from(source: DeviceError) -> Self
Converts to this type from the input type.
Source§impl From<DeviceError> for ClearError
impl From<DeviceError> for ClearError
Source§fn from(source: DeviceError) -> Self
fn from(source: DeviceError) -> Self
Converts to this type from the input type.
Source§impl From<DeviceError> for CommandEncoderError
impl From<DeviceError> for CommandEncoderError
Source§fn from(source: DeviceError) -> Self
fn from(source: DeviceError) -> Self
Converts to this type from the input type.
Source§impl From<DeviceError> for CompactBlasError
impl From<DeviceError> for CompactBlasError
Source§fn from(source: DeviceError) -> Self
fn from(source: DeviceError) -> Self
Converts to this type from the input type.
Source§impl From<DeviceError> for ComputePassErrorInner
impl From<DeviceError> for ComputePassErrorInner
Source§fn from(source: DeviceError) -> Self
fn from(source: DeviceError) -> Self
Converts to this type from the input type.
Source§impl From<DeviceError> for ConfigureSurfaceError
impl From<DeviceError> for ConfigureSurfaceError
Source§fn from(source: DeviceError) -> Self
fn from(source: DeviceError) -> Self
Converts to this type from the input type.
Source§impl From<DeviceError> for CreateBindGroupError
impl From<DeviceError> for CreateBindGroupError
Source§fn from(source: DeviceError) -> Self
fn from(source: DeviceError) -> Self
Converts to this type from the input type.
Source§impl From<DeviceError> for CreateBindGroupLayoutError
impl From<DeviceError> for CreateBindGroupLayoutError
Source§fn from(source: DeviceError) -> Self
fn from(source: DeviceError) -> Self
Converts to this type from the input type.
Source§impl From<DeviceError> for CreateBlasError
impl From<DeviceError> for CreateBlasError
Source§fn from(source: DeviceError) -> Self
fn from(source: DeviceError) -> Self
Converts to this type from the input type.
Source§impl From<DeviceError> for CreateBufferError
impl From<DeviceError> for CreateBufferError
Source§fn from(source: DeviceError) -> Self
fn from(source: DeviceError) -> Self
Converts to this type from the input type.
Source§impl From<DeviceError> for CreateComputePipelineError
impl From<DeviceError> for CreateComputePipelineError
Source§fn from(source: DeviceError) -> Self
fn from(source: DeviceError) -> Self
Converts to this type from the input type.
Source§impl From<DeviceError> for CreateExternalTextureError
impl From<DeviceError> for CreateExternalTextureError
Source§fn from(source: DeviceError) -> Self
fn from(source: DeviceError) -> Self
Converts to this type from the input type.
Source§impl From<DeviceError> for CreateIndirectValidationPipelineError
impl From<DeviceError> for CreateIndirectValidationPipelineError
Source§fn from(source: DeviceError) -> Self
fn from(source: DeviceError) -> Self
Converts to this type from the input type.
Source§impl From<DeviceError> for CreatePipelineCacheError
impl From<DeviceError> for CreatePipelineCacheError
Source§fn from(source: DeviceError) -> Self
fn from(source: DeviceError) -> Self
Converts to this type from the input type.
Source§impl From<DeviceError> for CreatePipelineLayoutError
impl From<DeviceError> for CreatePipelineLayoutError
Source§fn from(source: DeviceError) -> Self
fn from(source: DeviceError) -> Self
Converts to this type from the input type.
Source§impl From<DeviceError> for CreateQuerySetError
impl From<DeviceError> for CreateQuerySetError
Source§fn from(source: DeviceError) -> Self
fn from(source: DeviceError) -> Self
Converts to this type from the input type.
Source§impl From<DeviceError> for CreateRenderPipelineError
impl From<DeviceError> for CreateRenderPipelineError
Source§fn from(source: DeviceError) -> Self
fn from(source: DeviceError) -> Self
Converts to this type from the input type.
Source§impl From<DeviceError> for CreateSamplerError
impl From<DeviceError> for CreateSamplerError
Source§fn from(source: DeviceError) -> Self
fn from(source: DeviceError) -> Self
Converts to this type from the input type.
Source§impl From<DeviceError> for CreateShaderModuleError
impl From<DeviceError> for CreateShaderModuleError
Source§fn from(source: DeviceError) -> Self
fn from(source: DeviceError) -> Self
Converts to this type from the input type.
Source§impl From<DeviceError> for CreateTextureError
impl From<DeviceError> for CreateTextureError
Source§fn from(source: DeviceError) -> Self
fn from(source: DeviceError) -> Self
Converts to this type from the input type.
Source§impl From<DeviceError> for CreateTextureViewError
impl From<DeviceError> for CreateTextureViewError
Source§fn from(source: DeviceError) -> Self
fn from(source: DeviceError) -> Self
Converts to this type from the input type.
Source§impl From<DeviceError> for CreateTlasError
impl From<DeviceError> for CreateTlasError
Source§fn from(source: DeviceError) -> Self
fn from(source: DeviceError) -> Self
Converts to this type from the input type.
Source§impl From<DeviceError> for ExecutionError
impl From<DeviceError> for ExecutionError
Source§fn from(source: DeviceError) -> Self
fn from(source: DeviceError) -> Self
Converts to this type from the input type.
Source§impl From<DeviceError> for QueryError
impl From<DeviceError> for QueryError
Source§fn from(source: DeviceError) -> Self
fn from(source: DeviceError) -> Self
Converts to this type from the input type.
Source§impl From<DeviceError> for QueryUseError
impl From<DeviceError> for QueryUseError
Source§fn from(source: DeviceError) -> Self
fn from(source: DeviceError) -> Self
Converts to this type from the input type.
Source§impl From<DeviceError> for QueueSubmitError
impl From<DeviceError> for QueueSubmitError
Source§fn from(source: DeviceError) -> Self
fn from(source: DeviceError) -> Self
Converts to this type from the input type.
Source§impl From<DeviceError> for QueueWriteError
impl From<DeviceError> for QueueWriteError
Source§fn from(source: DeviceError) -> Self
fn from(source: DeviceError) -> Self
Converts to this type from the input type.
Source§impl From<DeviceError> for RenderBundleErrorInner
impl From<DeviceError> for RenderBundleErrorInner
Source§fn from(source: DeviceError) -> Self
fn from(source: DeviceError) -> Self
Converts to this type from the input type.
Source§impl From<DeviceError> for RenderPassErrorInner
impl From<DeviceError> for RenderPassErrorInner
Source§fn from(source: DeviceError) -> Self
fn from(source: DeviceError) -> Self
Converts to this type from the input type.
Source§impl From<DeviceError> for RequestDeviceError
impl From<DeviceError> for RequestDeviceError
Source§fn from(source: DeviceError) -> Self
fn from(source: DeviceError) -> Self
Converts to this type from the input type.
Source§impl From<DeviceError> for SurfaceError
impl From<DeviceError> for SurfaceError
Source§fn from(source: DeviceError) -> Self
fn from(source: DeviceError) -> Self
Converts to this type from the input type.
Source§impl From<DeviceError> for TransitionResourcesError
impl From<DeviceError> for TransitionResourcesError
Source§fn from(source: DeviceError) -> Self
fn from(source: DeviceError) -> Self
Converts to this type from the input type.
Source§impl From<DeviceError> for WaitIdleError
impl From<DeviceError> for WaitIdleError
Source§fn from(source: DeviceError) -> Self
fn from(source: DeviceError) -> Self
Converts to this type from the input type.
Source§impl Serialize for DeviceError
impl Serialize for DeviceError
Source§impl WebGpuError for DeviceError
impl WebGpuError for DeviceError
Source§fn webgpu_error_type(&self) -> ErrorType
fn webgpu_error_type(&self) -> ErrorType
Determine the classification of this error as a WebGPU [
ErrorType].Auto Trait Implementations§
impl Freeze for DeviceError
impl RefUnwindSafe for DeviceError
impl Send for DeviceError
impl Sync for DeviceError
impl Unpin for DeviceError
impl UnwindSafe for DeviceError
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