#[non_exhaustive]pub enum InferenceErrorKind {
InvalidArtifact,
ShapeOrTypeMismatch,
ExecutionFailed,
ResourceUnavailable,
}Expand description
Errors related to model loading and inference execution.
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.
InvalidArtifact
A model artifact is invalid or unsupported.
ShapeOrTypeMismatch
The input or output payload is incompatible with the model.
ExecutionFailed
Execution failed inside the backend.
Backend resource not available (e.g., device).
Trait Implementations§
Source§impl Clone for InferenceErrorKind
impl Clone for InferenceErrorKind
Source§fn clone(&self) -> InferenceErrorKind
fn clone(&self) -> InferenceErrorKind
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 InferenceErrorKind
impl Debug for InferenceErrorKind
Source§impl Display for InferenceErrorKind
impl Display for InferenceErrorKind
Source§impl PartialEq for InferenceErrorKind
impl PartialEq for InferenceErrorKind
impl Copy for InferenceErrorKind
impl Eq for InferenceErrorKind
impl StructuralPartialEq for InferenceErrorKind
Auto Trait Implementations§
impl Freeze for InferenceErrorKind
impl RefUnwindSafe for InferenceErrorKind
impl Send for InferenceErrorKind
impl Sync for InferenceErrorKind
impl Unpin for InferenceErrorKind
impl UnsafeUnpin for InferenceErrorKind
impl UnwindSafe for InferenceErrorKind
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