#[non_exhaustive]pub enum RuntimeFailureReasonRef<'a> {
MissingExtension {
family: &'a str,
},
NoInputIngress {
input_index: usize,
placement: &'a Placement,
},
UnsupportedOperation {
operation: &'a str,
},
Other,
}Expand description
Borrowed, stable classification of a runtime preparation or execution failure.
The view retains references to the original error payloads and performs no message formatting or allocation. Match a wildcard because this enum is non-exhaustive.
§Examples
use tenferro_runtime::{Error, ErrorPhase, RuntimeFailureReasonRef};
let error = Error::unsupported("compare", ErrorPhase::Compile, "not available");
assert!(matches!(
error.reason(),
RuntimeFailureReasonRef::UnsupportedOperation { operation: "compare" }
));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.
MissingExtension
An operation belongs to an extension family with no installed module.
NoInputIngress
No prepared engine accepts an input at its physical placement.
UnsupportedOperation
A provider or tensor backend does not implement an operation.
Other
A failure has no stable structured classification.
Trait Implementations§
Source§impl<'a> Clone for RuntimeFailureReasonRef<'a>
impl<'a> Clone for RuntimeFailureReasonRef<'a>
Source§fn clone(&self) -> RuntimeFailureReasonRef<'a>
fn clone(&self) -> RuntimeFailureReasonRef<'a>
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl<'a> Copy for RuntimeFailureReasonRef<'a>
Source§impl<'a> Debug for RuntimeFailureReasonRef<'a>
impl<'a> Debug for RuntimeFailureReasonRef<'a>
Source§impl<'a> PartialEq for RuntimeFailureReasonRef<'a>
impl<'a> PartialEq for RuntimeFailureReasonRef<'a>
Source§fn eq(&self, other: &RuntimeFailureReasonRef<'a>) -> bool
fn eq(&self, other: &RuntimeFailureReasonRef<'a>) -> bool
Tests for
self and other values to be equal, and is used by ==.impl<'a> StructuralPartialEq for RuntimeFailureReasonRef<'a>
Auto Trait Implementations§
impl<'a> Freeze for RuntimeFailureReasonRef<'a>
impl<'a> RefUnwindSafe for RuntimeFailureReasonRef<'a>
impl<'a> Send for RuntimeFailureReasonRef<'a>
impl<'a> Sync for RuntimeFailureReasonRef<'a>
impl<'a> Unpin for RuntimeFailureReasonRef<'a>
impl<'a> UnsafeUnpin for RuntimeFailureReasonRef<'a>
impl<'a> UnwindSafe for RuntimeFailureReasonRef<'a>
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