pub enum ErrorCause {
Show 47 variants
Unknown,
CreateOptions,
SetOptionsHardwareAccelerators,
CreateCompiledModel,
GetCompiledModelInputBufferRequirements,
GetCompiledModelOutputBufferRequirements,
InputDoesntSupportAnyTensorBufferTypes,
RunCompiledModel,
NotSupportedLiteRtAnyType,
CreateEnvironment,
GetSignatureKey,
GetSignatureSubgraph,
GetNumSignatureInputs,
GetSignatureInputName,
GetNumSignatureOutputs,
GetSignatureOutputName,
GetSignature,
GetTensorTypeId,
GetUnrankedTensorType,
GetRankedTensorType,
InvalidTensorTypeId,
GetTensorName,
GetNumSubgraphInputs,
GetNumSubgraphOutputs,
GetSubgraphInput,
SubgraphInputTensorByNameNotFound,
GetSubgraphOutput,
SubgraphOutputTensorByNameNotFound,
CreateModelFromFile,
CreateModelFromBuffer,
GetNumModelSubgraphs,
GetNumModelSignatures,
GetModelSignature,
GetTensorBufferRequirementsBufferSize,
GetNumTensorBufferRequirementsSupportedBufferTypes,
GetTensorBufferRequirementsSupportedTensorBufferType,
InvalidElementTypeEnumValue,
InvalidTensorBufferTypeEnumValue,
CreateManagedTensorBuffer,
LockTensorBufferRead,
LockTensorBufferWrite,
GetTensorBufferPackedSize,
IncompatibleWriteType,
TensorBufferTooSmall,
IncompatibleReadType,
ReadBufferTooSmall,
InvalidStringEncoding,
}Expand description
Reason of the error. It provides information where in the binding code the error occurred.
Variants§
Unknown
CreateOptions
SetOptionsHardwareAccelerators
CreateCompiledModel
GetCompiledModelInputBufferRequirements
GetCompiledModelOutputBufferRequirements
InputDoesntSupportAnyTensorBufferTypes
RunCompiledModel
NotSupportedLiteRtAnyType
CreateEnvironment
GetSignatureKey
GetSignatureSubgraph
GetNumSignatureInputs
GetSignatureInputName
GetNumSignatureOutputs
GetSignatureOutputName
GetSignature
GetTensorTypeId
GetUnrankedTensorType
GetRankedTensorType
InvalidTensorTypeId
GetTensorName
GetNumSubgraphInputs
GetNumSubgraphOutputs
GetSubgraphInput
SubgraphInputTensorByNameNotFound
GetSubgraphOutput
SubgraphOutputTensorByNameNotFound
CreateModelFromFile
CreateModelFromBuffer
GetNumModelSubgraphs
GetNumModelSignatures
GetModelSignature
GetTensorBufferRequirementsBufferSize
GetNumTensorBufferRequirementsSupportedBufferTypes
GetTensorBufferRequirementsSupportedTensorBufferType
InvalidElementTypeEnumValue
InvalidTensorBufferTypeEnumValue
CreateManagedTensorBuffer
LockTensorBufferRead
LockTensorBufferWrite
GetTensorBufferPackedSize
IncompatibleWriteType
TensorBufferTooSmall
IncompatibleReadType
ReadBufferTooSmall
InvalidStringEncoding
Trait Implementations§
Source§impl Clone for ErrorCause
impl Clone for ErrorCause
Source§fn clone(&self) -> ErrorCause
fn clone(&self) -> ErrorCause
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 moreSource§impl Debug for ErrorCause
impl Debug for ErrorCause
Source§impl PartialEq for ErrorCause
impl PartialEq for ErrorCause
Source§fn eq(&self, other: &ErrorCause) -> bool
fn eq(&self, other: &ErrorCause) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for ErrorCause
impl Eq for ErrorCause
impl StructuralPartialEq for ErrorCause
Auto Trait Implementations§
impl Freeze for ErrorCause
impl RefUnwindSafe for ErrorCause
impl Send for ErrorCause
impl Sync for ErrorCause
impl Unpin for ErrorCause
impl UnsafeUnpin for ErrorCause
impl UnwindSafe for ErrorCause
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