#[repr(u32)]pub enum Error {
Show 16 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_NotFound = 32,
Error_MemoryAllocationFailed = 33,
Error_AccessFailed = 34,
Error_InvalidProgram = 35,
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_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_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 ExternType for Error
Available on crate feature std only.
impl ExternType for Error
Available on crate feature
std only.impl Copy for Error
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 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
Mutably borrows from an owned value. Read more