Error

Enum Error 

Source
#[repr(u32)]
pub enum Error {
Show 20 variants Error_Ok = 0, Error_Internal = 1, Error_InvalidState = 2, Error_EndOfMethod = 3, Error_NotSupported = 16, Error_NotImplemented = 17, Error_InvalidArgument = 18, Error_InvalidType = 19, Error_OperatorMissing = 20, Error_RegistrationExceedingMaxKernels = 21, Error_RegistrationAlreadyRegistered = 22, Error_NotFound = 32, Error_MemoryAllocationFailed = 33, Error_AccessFailed = 34, Error_InvalidProgram = 35, Error_InvalidExternalData = 36, Error_OutOfResources = 37, Error_DelegateInvalidCompatibility = 48, Error_DelegateMemoryAllocationFailed = 49, Error_DelegateInvalidHandle = 50,
}
Expand description

ExecuTorch Error type.

Variants§

§

Error_Ok = 0

Status indicating a successful operation.

§

Error_Internal = 1

An internal error occurred.

§

Error_InvalidState = 2

Status indicating the executor is in an invalid state for a target operation

§

Error_EndOfMethod = 3

Status indicating there are no more steps of execution to run

§

Error_NotSupported = 16

Operation is not supported in the current context.

§

Error_NotImplemented = 17

Operation is not yet implemented.

§

Error_InvalidArgument = 18

User provided an invalid argument.

§

Error_InvalidType = 19

Object is an invalid type for the operation.

§

Error_OperatorMissing = 20

Operator(s) missing in the operator registry.

§

Error_RegistrationExceedingMaxKernels = 21

Registration error: Exceeding the maximum number of kernels.

§

Error_RegistrationAlreadyRegistered = 22

Registration error: The kernel is already registered.

§

Error_NotFound = 32

Requested resource could not be found.

§

Error_MemoryAllocationFailed = 33

Could not allocate the requested memory.

§

Error_AccessFailed = 34

Could not access a resource.

§

Error_InvalidProgram = 35

Error caused by the contents of a program.

§

Error_InvalidExternalData = 36

Error caused by the contents of external data.

§

Error_OutOfResources = 37

Does not have enough resources to perform the requested operation.

§

Error_DelegateInvalidCompatibility = 48

Init stage: Backend receives an incompatible delegate version.

§

Error_DelegateMemoryAllocationFailed = 49

Init stage: Backend fails to allocate memory.

§

Error_DelegateInvalidHandle = 50

Execute stage: The handle is invalid.

Trait Implementations§

Source§

impl Clone for Error

Source§

fn clone(&self) -> Error

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for Error

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl ExternType for Error

Available on crate feature std only.
Source§

type Id = (E, r, r, o, r)

A type-level representation of the type’s C++ namespace and type name. Read more
Source§

type Kind = Trivial

Source§

impl Hash for Error

Source§

fn hash<__H: Hasher>(&self, state: &mut __H)

Feeds this value into the given Hasher. Read more
1.3.0 · Source§

fn hash_slice<H>(data: &[Self], state: &mut H)
where H: Hasher, Self: Sized,

Feeds a slice of this type into the given Hasher. Read more
Source§

impl PartialEq for Error

Source§

fn eq(&self, other: &Error) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl Copy for Error

Source§

impl Eq for Error

Source§

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 UnwindSafe for Error

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.