pub enum AdmitError {
Parse,
Analysis,
Unsupported,
}Expand description
Why a TOSA artifact is not admissible to the compilable subset.
Variants§
Parse
The bytes are not a valid TOSA artifact.
Analysis
The graph is valid TOSA but not for the requested target.
Unsupported
The graph is admissible TOSA but outside the compilable subset.
Trait Implementations§
Source§impl Clone for AdmitError
impl Clone for AdmitError
Source§fn clone(&self) -> AdmitError
fn clone(&self) -> AdmitError
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 Copy for AdmitError
Source§impl Debug for AdmitError
impl Debug for AdmitError
Source§impl Display for AdmitError
impl Display for AdmitError
impl Eq for AdmitError
Source§impl Error for AdmitError
impl Error for AdmitError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Source§impl From<AdmitError> for BackendError
The one authoritative mapping to wire-level error codes, shared by load_program and
compile_artifact so the two paths can never drift. The codes match the OpenVINO backend’s
classification of the same failure classes (its lowering_error): a malformed or semantically
invalid artifact is the guest’s mistake (InvalidArgument); a valid graph this backend cannot
execute is Unsupported.
impl From<AdmitError> for BackendError
The one authoritative mapping to wire-level error codes, shared by load_program and
compile_artifact so the two paths can never drift. The codes match the OpenVINO backend’s
classification of the same failure classes (its lowering_error): a malformed or semantically
invalid artifact is the guest’s mistake (InvalidArgument); a valid graph this backend cannot
execute is Unsupported.
Source§fn from(error: AdmitError) -> Self
fn from(error: AdmitError) -> Self
Converts to this type from the input type.
Source§impl PartialEq for AdmitError
impl PartialEq for AdmitError
Source§fn eq(&self, other: &AdmitError) -> bool
fn eq(&self, other: &AdmitError) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for AdmitError
Auto Trait Implementations§
impl Freeze for AdmitError
impl RefUnwindSafe for AdmitError
impl Send for AdmitError
impl Sync for AdmitError
impl Unpin for AdmitError
impl UnsafeUnpin for AdmitError
impl UnwindSafe for AdmitError
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