Enum deno_webgpu::error::WebGpuError[][src]

pub enum WebGpuError {
    Lost,
    OutOfMemory,
    Validation(String),
}

Variants

Lost
OutOfMemory
Validation(String)

Trait Implementations

impl From<BufferAccessError> for WebGpuError[src]

fn from(err: BufferAccessError) -> Self[src]

Performs the conversion.

impl From<CommandAllocatorError> for WebGpuError[src]

fn from(err: CommandAllocatorError) -> Self[src]

Performs the conversion.

impl From<CommandEncoderError> for WebGpuError[src]

fn from(err: CommandEncoderError) -> Self[src]

Performs the conversion.

impl From<ComputePassError> for WebGpuError[src]

fn from(err: ComputePassError) -> Self[src]

Performs the conversion.

impl From<CopyError> for WebGpuError[src]

fn from(err: CopyError) -> Self[src]

Performs the conversion.

impl From<CreateBindGroupError> for WebGpuError[src]

fn from(err: CreateBindGroupError) -> Self[src]

Performs the conversion.

impl From<CreateBindGroupLayoutError> for WebGpuError[src]

fn from(err: CreateBindGroupLayoutError) -> Self[src]

Performs the conversion.

impl From<CreateBufferError> for WebGpuError[src]

fn from(err: CreateBufferError) -> Self[src]

Performs the conversion.

impl From<CreateComputePipelineError> for WebGpuError[src]

fn from(err: CreateComputePipelineError) -> Self[src]

Performs the conversion.

impl From<CreatePipelineLayoutError> for WebGpuError[src]

fn from(err: CreatePipelineLayoutError) -> Self[src]

Performs the conversion.

impl From<CreateQuerySetError> for WebGpuError[src]

fn from(err: CreateQuerySetError) -> Self[src]

Performs the conversion.

impl From<CreateRenderBundleError> for WebGpuError[src]

fn from(err: CreateRenderBundleError) -> Self[src]

Performs the conversion.

impl From<CreateRenderPipelineError> for WebGpuError[src]

fn from(err: CreateRenderPipelineError) -> Self[src]

Performs the conversion.

impl From<CreateSamplerError> for WebGpuError[src]

fn from(err: CreateSamplerError) -> Self[src]

Performs the conversion.

impl From<CreateShaderModuleError> for WebGpuError[src]

fn from(err: CreateShaderModuleError) -> Self[src]

Performs the conversion.

impl From<CreateTextureError> for WebGpuError[src]

fn from(err: CreateTextureError) -> Self[src]

Performs the conversion.

impl From<CreateTextureViewError> for WebGpuError[src]

fn from(err: CreateTextureViewError) -> Self[src]

Performs the conversion.

impl From<DeviceError> for WebGpuError[src]

fn from(err: DeviceError) -> Self[src]

Performs the conversion.

impl From<GetBindGroupLayoutError> for WebGpuError[src]

fn from(err: GetBindGroupLayoutError) -> Self[src]

Performs the conversion.

impl From<QueryError> for WebGpuError[src]

fn from(err: QueryError) -> Self[src]

Performs the conversion.

impl From<QueueSubmitError> for WebGpuError[src]

fn from(err: QueueSubmitError) -> Self[src]

Performs the conversion.

impl From<QueueWriteError> for WebGpuError[src]

fn from(err: QueueWriteError) -> Self[src]

Performs the conversion.

impl From<RenderBundleError> for WebGpuError[src]

fn from(err: RenderBundleError) -> Self[src]

Performs the conversion.

impl From<RenderPassError> for WebGpuError[src]

fn from(err: RenderPassError) -> Self[src]

Performs the conversion.

impl Serialize for WebGpuError[src]

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error> where
    __S: Serializer
[src]

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

pub fn type_id(&self) -> TypeId[src]

Gets the TypeId of self. Read more

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

pub fn borrow(&self) -> &T[src]

Immutably borrows from an owned value. Read more

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

pub fn borrow_mut(&mut self) -> &mut T[src]

Mutably borrows from an owned value. Read more

impl<T> Downcast<T> for T

pub fn downcast(&self) -> &T

impl<T> From<T> for T[src]

pub fn from(t: T) -> T[src]

Performs the conversion.

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

pub fn into(self) -> U[src]

Performs the conversion.

impl<T> Serializable for T where
    T: Serialize

pub fn to_v8(
    &self,
    scope: &mut HandleScope<'a, Context>
) -> Result<Local<'a, Value>, Error>

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]

Performs the conversion.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>[src]

Performs the conversion.

impl<T> Upcast<T> for T

pub fn upcast(&self) -> Option<&T>