#[non_exhaustive]pub enum Error {
Show 22 variants
InlineCycle {
op_id: String,
},
InlineUnknownOp {
op_id: String,
},
InlineNonInlinable {
op_id: String,
},
InlineArgCountMismatch {
op_id: String,
expected: usize,
got: usize,
},
InlineNoOutput {
op_id: String,
},
InlineOutputCountMismatch {
op_id: String,
got: usize,
},
WireFormatValidation {
message: String,
},
Lowering {
message: String,
},
Interp {
message: String,
},
Gpu {
message: String,
},
DecodeConfig {
message: String,
},
Decode {
message: String,
},
Decompress {
message: String,
},
Dfa {
message: String,
},
Dataflow {
message: String,
},
Prefix {
message: String,
},
Csr {
message: String,
},
Serialization {
message: String,
},
RuleEval {
message: String,
},
VersionMismatch {
expected: u32,
found: u32,
},
UnknownDialect {
name: String,
requested: String,
},
UnknownOp {
dialect: String,
op: String,
},
}Expand description
The unified failure enum for every vyre operation.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
InlineCycle
A recursive composition cycle was found during operation inlining.
InlineUnknownOp
Operation inlining could not resolve an operation id.
InlineNonInlinable
Operation inlining rejected an operation that must dispatch separately.
InlineArgCountMismatch
The number of arguments passed to an inlined operation did not match.
Fields
InlineNoOutput
The inlined operation never wrote to its declared output buffer.
InlineOutputCountMismatch
The inlined operation declared an invalid number of output buffers.
Fields
WireFormatValidation
Wire-format payload failed validation checks.
Lowering
target-text lowering failed before a shader could be emitted.
Interp
Reference interpreter execution failed.
Gpu
GPU execution failed.
DecodeConfig
Decode configuration failed validation.
Decode
Decode execution or readback failed validation.
Decompress
Decompression execution, sizing, or readback failed validation.
Dfa
DFA compilation or scanning failed.
Dataflow
Dataflow graph execution failed.
Prefix
Prefix-array construction failed before allocation or upload.
Csr
CSR graph construction or validation failed.
Serialization
Serialization or deserialization failed.
RuleEval
Rule formula construction or evaluation failed.
VersionMismatch
Wire-format schema version mismatch.
Fields
UnknownDialect
Unknown dialect on the wire.
Fields
UnknownOp
Unknown op inside a known dialect.
Implementations§
Trait Implementations§
Source§impl Error for Error
impl Error for Error
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
use the Display impl or to_string()
impl Eq for Error
impl StructuralPartialEq for Error
Auto Trait Implementations§
impl Freeze for Error
impl RefUnwindSafe for Error
impl Send for Error
impl Sync for Error
impl Unpin for Error
impl UnsafeUnpin for Error
impl UnwindSafe for Error
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.