Skip to main content

AdapterErrorParts

Trait AdapterErrorParts 

Source
pub trait AdapterErrorParts {
    // Required methods
    fn source_codec_error(&self) -> Option<&dyn CodecError>;
    fn adapter_error_kind(&self) -> AdapterErrorKind;
}
Expand description

Variant mapping supplied by GPU adapter error enums.

Required Methods§

Source

fn source_codec_error(&self) -> Option<&dyn CodecError>

Return the wrapped codec/fallback error, when this adapter error has one.

Source

fn adapter_error_kind(&self) -> AdapterErrorKind

Return the adapter-local classification for non-codec variants.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§