Enum ExecutionErrorKind
#[non_exhaustive]#[repr(i32)]pub enum ExecutionErrorKind {
Show 41 variants
Unknown = 0,
InsufficientGas = 1,
InvalidGasObject = 2,
InvariantViolation = 3,
FeatureNotYetSupported = 4,
ObjectTooBig = 5,
PackageTooBig = 6,
CircularObjectOwnership = 7,
InsufficientCoinBalance = 8,
CoinBalanceOverflow = 9,
PublishErrorNonZeroAddress = 10,
SuiMoveVerificationError = 11,
MovePrimitiveRuntimeError = 12,
MoveAbort = 13,
VmVerificationOrDeserializationError = 14,
VmInvariantViolation = 15,
FunctionNotFound = 16,
ArityMismatch = 17,
TypeArityMismatch = 18,
NonEntryFunctionInvoked = 19,
CommandArgumentError = 20,
TypeArgumentError = 21,
UnusedValueWithoutDrop = 22,
InvalidPublicFunctionReturnType = 23,
InvalidTransferObject = 24,
EffectsTooLarge = 25,
PublishUpgradeMissingDependency = 26,
PublishUpgradeDependencyDowngrade = 27,
PackageUpgradeError = 28,
WrittenObjectsTooLarge = 29,
CertificateDenied = 30,
SuiMoveVerificationTimedout = 31,
ConsensusObjectOperationNotAllowed = 32,
InputObjectDeleted = 33,
ExecutionCanceledDueToConsensusObjectCongestion = 34,
AddressDeniedForCoin = 35,
CoinTypeGlobalPause = 36,
ExecutionCanceledDueToRandomnessUnavailable = 37,
MoveVectorElemTooBig = 38,
MoveRawValueTooBig = 39,
InvalidLinkage = 40,
}
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Unknown = 0
InsufficientGas = 1
Insufficient gas.
InvalidGasObject = 2
Invalid Gas
object.
InvariantViolation = 3
Invariant violation.
FeatureNotYetSupported = 4
Attempted to use feature that is not supported yet.
ObjectTooBig = 5
Move object is larger than the maximum allowed size.
PackageTooBig = 6
Package is larger than the maximum allowed size.
CircularObjectOwnership = 7
Circular object ownership.
InsufficientCoinBalance = 8
Insufficient coin balance for requested operation.
CoinBalanceOverflow = 9
Coin balance overflowed an u64.
PublishErrorNonZeroAddress = 10
Publish error, non-zero address. The modules in the package must have their self-addresses set to zero.
SuiMoveVerificationError = 11
Sui Move bytecode verification error.
MovePrimitiveRuntimeError = 12
Error from a non-abort instruction. Possible causes: Arithmetic error, stack overflow, max value depth, or similar.
MoveAbort = 13
Move runtime abort.
VmVerificationOrDeserializationError = 14
Bytecode verification error.
VmInvariantViolation = 15
MoveVm invariant violation.
FunctionNotFound = 16
Function not found.
ArityMismatch = 17
Parity mismatch for Move function. The number of arguments does not match the number of parameters.
TypeArityMismatch = 18
Type parity mismatch for Move function. Mismatch between the number of actual versus expected type arguments.
NonEntryFunctionInvoked = 19
Non-entry function invoked. Move Call must start with an entry function.
CommandArgumentError = 20
Invalid command argument.
TypeArgumentError = 21
Type argument error.
UnusedValueWithoutDrop = 22
Unused result without the drop ability.
InvalidPublicFunctionReturnType = 23
Invalid public Move function signature. Unsupported return type for return value.
InvalidTransferObject = 24
Invalid transfer object, object does not have public transfer.
EffectsTooLarge = 25
Effects from the transaction are too large.
PublishUpgradeMissingDependency = 26
Publish or Upgrade is missing dependency.
PublishUpgradeDependencyDowngrade = 27
Publish or upgrade dependency downgrade.
Indirect (transitive) dependency of published or upgraded package has been assigned an on-chain version that is less than the version required by one of the package’s transitive dependencies.
PackageUpgradeError = 28
Invalid package upgrade.
WrittenObjectsTooLarge = 29
Indicates the transaction tried to write objects too large to storage.
CertificateDenied = 30
Certificate is on the deny list.
SuiMoveVerificationTimedout = 31
Sui Move bytecode verification timed out.
ConsensusObjectOperationNotAllowed = 32
The requested consensus object operation is not allowed.
InputObjectDeleted = 33
Requested consensus object has been deleted.
ExecutionCanceledDueToConsensusObjectCongestion = 34
Certificate is canceled due to congestion on consensus objects.
AddressDeniedForCoin = 35
Address is denied for this coin type.
CoinTypeGlobalPause = 36
Coin type is globally paused for use.
Certificate is canceled because randomness could not be generated this epoch.
MoveVectorElemTooBig = 38
MoveRawValueTooBig = 39
InvalidLinkage = 40
Implementations§
§impl ExecutionErrorKind
impl ExecutionErrorKind
§impl ExecutionErrorKind
impl ExecutionErrorKind
pub fn as_str_name(&self) -> &'static str
pub fn as_str_name(&self) -> &'static str
String value of the enum field names used in the ProtoBuf definition.
The values are not transformed in any way and thus are considered stable (if the ProtoBuf definition does not change) and safe for programmatic use.
pub fn from_str_name(value: &str) -> Option<ExecutionErrorKind>
pub fn from_str_name(value: &str) -> Option<ExecutionErrorKind>
Creates an enum from field names used in the ProtoBuf definition.
Trait Implementations§
§impl Clone for ExecutionErrorKind
impl Clone for ExecutionErrorKind
§fn clone(&self) -> ExecutionErrorKind
fn clone(&self) -> ExecutionErrorKind
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more§impl Debug for ExecutionErrorKind
impl Debug for ExecutionErrorKind
§impl Default for ExecutionErrorKind
impl Default for ExecutionErrorKind
§fn default() -> ExecutionErrorKind
fn default() -> ExecutionErrorKind
§impl<'de> Deserialize<'de> for ExecutionErrorKind
impl<'de> Deserialize<'de> for ExecutionErrorKind
§fn deserialize<D>(
deserializer: D,
) -> Result<ExecutionErrorKind, <D as Deserializer<'de>>::Error>where
D: Deserializer<'de>,
fn deserialize<D>(
deserializer: D,
) -> Result<ExecutionErrorKind, <D as Deserializer<'de>>::Error>where
D: Deserializer<'de>,
§impl From<ExecutionErrorKind> for i32
impl From<ExecutionErrorKind> for i32
§fn from(value: ExecutionErrorKind) -> i32
fn from(value: ExecutionErrorKind) -> i32
§impl Hash for ExecutionErrorKind
impl Hash for ExecutionErrorKind
§impl Ord for ExecutionErrorKind
impl Ord for ExecutionErrorKind
§fn cmp(&self, other: &ExecutionErrorKind) -> Ordering
fn cmp(&self, other: &ExecutionErrorKind) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
§impl PartialEq for ExecutionErrorKind
impl PartialEq for ExecutionErrorKind
§impl PartialOrd for ExecutionErrorKind
impl PartialOrd for ExecutionErrorKind
§impl Serialize for ExecutionErrorKind
impl Serialize for ExecutionErrorKind
§fn serialize<S>(
&self,
serializer: S,
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>where
S: Serializer,
fn serialize<S>(
&self,
serializer: S,
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>where
S: Serializer,
§impl TryFrom<i32> for ExecutionErrorKind
impl TryFrom<i32> for ExecutionErrorKind
§type Error = UnknownEnumValue
type Error = UnknownEnumValue
§fn try_from(value: i32) -> Result<ExecutionErrorKind, UnknownEnumValue>
fn try_from(value: i32) -> Result<ExecutionErrorKind, UnknownEnumValue>
impl Copy for ExecutionErrorKind
impl Eq for ExecutionErrorKind
impl StructuralPartialEq for ExecutionErrorKind
Auto Trait Implementations§
impl Freeze for ExecutionErrorKind
impl RefUnwindSafe for ExecutionErrorKind
impl Send for ExecutionErrorKind
impl Sync for ExecutionErrorKind
impl Unpin for ExecutionErrorKind
impl UnwindSafe for ExecutionErrorKind
Blanket Implementations§
§impl<T> AnySync for T
impl<T> AnySync for T
§impl<U> As for U
impl<U> As for U
§fn as_<T>(self) -> Twhere
T: CastFrom<U>,
fn as_<T>(self) -> Twhere
T: CastFrom<U>,
self
to type T
. The semantics of numeric casting with the as
operator are followed, so <T as As>::as_::<U>
can be used in the same way as T as U
for numeric conversions. Read more§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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
§impl<T> CallHasher for T
impl<T> CallHasher for T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
§impl<T> Conv for T
impl<T> Conv for T
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key
and return true
if they are equal.§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key
and return true
if they are equal.§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
§impl<T> FmtForward for T
impl<T> FmtForward for T
§fn fmt_binary(self) -> FmtBinary<Self>where
Self: Binary,
fn fmt_binary(self) -> FmtBinary<Self>where
Self: Binary,
self
to use its Binary
implementation when Debug
-formatted.§fn fmt_display(self) -> FmtDisplay<Self>where
Self: Display,
fn fmt_display(self) -> FmtDisplay<Self>where
Self: Display,
self
to use its Display
implementation when
Debug
-formatted.§fn fmt_lower_exp(self) -> FmtLowerExp<Self>where
Self: LowerExp,
fn fmt_lower_exp(self) -> FmtLowerExp<Self>where
Self: LowerExp,
self
to use its LowerExp
implementation when
Debug
-formatted.§fn fmt_lower_hex(self) -> FmtLowerHex<Self>where
Self: LowerHex,
fn fmt_lower_hex(self) -> FmtLowerHex<Self>where
Self: LowerHex,
self
to use its LowerHex
implementation when
Debug
-formatted.§fn fmt_octal(self) -> FmtOctal<Self>where
Self: Octal,
fn fmt_octal(self) -> FmtOctal<Self>where
Self: Octal,
self
to use its Octal
implementation when Debug
-formatted.§fn fmt_pointer(self) -> FmtPointer<Self>where
Self: Pointer,
fn fmt_pointer(self) -> FmtPointer<Self>where
Self: Pointer,
self
to use its Pointer
implementation when
Debug
-formatted.§fn fmt_upper_exp(self) -> FmtUpperExp<Self>where
Self: UpperExp,
fn fmt_upper_exp(self) -> FmtUpperExp<Self>where
Self: UpperExp,
self
to use its UpperExp
implementation when
Debug
-formatted.§fn fmt_upper_hex(self) -> FmtUpperHex<Self>where
Self: UpperHex,
fn fmt_upper_hex(self) -> FmtUpperHex<Self>where
Self: UpperHex,
self
to use its UpperHex
implementation when
Debug
-formatted.§fn fmt_list(self) -> FmtList<Self>where
&'a Self: for<'a> IntoIterator,
fn fmt_list(self) -> FmtList<Self>where
&'a Self: for<'a> IntoIterator,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T
in a Request
§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T
in a tonic::Request
§impl<L> LayerExt<L> for L
impl<L> LayerExt<L> for L
§fn named_layer<S>(&self, service: S) -> Layered<<L as Layer<S>>::Service, S>where
L: Layer<S>,
fn named_layer<S>(&self, service: S) -> Layered<<L as Layer<S>>::Service, S>where
L: Layer<S>,
Layered
].§impl<T> Pipe for Twhere
T: ?Sized,
impl<T> Pipe for Twhere
T: ?Sized,
§fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> Rwhere
Self: Sized,
fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> Rwhere
Self: Sized,
§fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> Rwhere
R: 'a,
fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> Rwhere
R: 'a,
self
and passes that borrow into the pipe function. Read more§fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> Rwhere
R: 'a,
fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> Rwhere
R: 'a,
self
and passes that borrow into the pipe function. Read more§fn pipe_borrow<'a, B, R>(&'a self, func: impl FnOnce(&'a B) -> R) -> R
fn pipe_borrow<'a, B, R>(&'a self, func: impl FnOnce(&'a B) -> R) -> R
§fn pipe_borrow_mut<'a, B, R>(
&'a mut self,
func: impl FnOnce(&'a mut B) -> R,
) -> R
fn pipe_borrow_mut<'a, B, R>( &'a mut self, func: impl FnOnce(&'a mut B) -> R, ) -> R
§fn pipe_as_ref<'a, U, R>(&'a self, func: impl FnOnce(&'a U) -> R) -> R
fn pipe_as_ref<'a, U, R>(&'a self, func: impl FnOnce(&'a U) -> R) -> R
self
, then passes self.as_ref()
into the pipe function.§fn pipe_as_mut<'a, U, R>(&'a mut self, func: impl FnOnce(&'a mut U) -> R) -> R
fn pipe_as_mut<'a, U, R>(&'a mut self, func: impl FnOnce(&'a mut U) -> R) -> R
self
, then passes self.as_mut()
into the pipe
function.§fn pipe_deref<'a, T, R>(&'a self, func: impl FnOnce(&'a T) -> R) -> R
fn pipe_deref<'a, T, R>(&'a self, func: impl FnOnce(&'a T) -> R) -> R
self
, then passes self.deref()
into the pipe function.§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
Source§impl<T> Serialize for T
impl<T> Serialize for T
fn erased_serialize(&self, serializer: &mut dyn Serializer) -> Result<Ok, Error>
§impl<T> Tap for T
impl<T> Tap for T
§fn tap_borrow<B>(self, func: impl FnOnce(&B)) -> Self
fn tap_borrow<B>(self, func: impl FnOnce(&B)) -> Self
Borrow<B>
of a value. Read more§fn tap_borrow_mut<B>(self, func: impl FnOnce(&mut B)) -> Self
fn tap_borrow_mut<B>(self, func: impl FnOnce(&mut B)) -> Self
BorrowMut<B>
of a value. Read more§fn tap_ref<R>(self, func: impl FnOnce(&R)) -> Self
fn tap_ref<R>(self, func: impl FnOnce(&R)) -> Self
AsRef<R>
view of a value. Read more§fn tap_ref_mut<R>(self, func: impl FnOnce(&mut R)) -> Self
fn tap_ref_mut<R>(self, func: impl FnOnce(&mut R)) -> Self
AsMut<R>
view of a value. Read more§fn tap_deref<T>(self, func: impl FnOnce(&T)) -> Self
fn tap_deref<T>(self, func: impl FnOnce(&T)) -> Self
Deref::Target
of a value. Read more§fn tap_deref_mut<T>(self, func: impl FnOnce(&mut T)) -> Self
fn tap_deref_mut<T>(self, func: impl FnOnce(&mut T)) -> Self
Deref::Target
of a value. Read more§fn tap_dbg(self, func: impl FnOnce(&Self)) -> Self
fn tap_dbg(self, func: impl FnOnce(&Self)) -> Self
.tap()
only in debug builds, and is erased in release builds.§fn tap_mut_dbg(self, func: impl FnOnce(&mut Self)) -> Self
fn tap_mut_dbg(self, func: impl FnOnce(&mut Self)) -> Self
.tap_mut()
only in debug builds, and is erased in release
builds.§fn tap_borrow_dbg<B>(self, func: impl FnOnce(&B)) -> Self
fn tap_borrow_dbg<B>(self, func: impl FnOnce(&B)) -> Self
.tap_borrow()
only in debug builds, and is erased in release
builds.§fn tap_borrow_mut_dbg<B>(self, func: impl FnOnce(&mut B)) -> Self
fn tap_borrow_mut_dbg<B>(self, func: impl FnOnce(&mut B)) -> Self
.tap_borrow_mut()
only in debug builds, and is erased in release
builds.§fn tap_ref_dbg<R>(self, func: impl FnOnce(&R)) -> Self
fn tap_ref_dbg<R>(self, func: impl FnOnce(&R)) -> Self
.tap_ref()
only in debug builds, and is erased in release
builds.§fn tap_ref_mut_dbg<R>(self, func: impl FnOnce(&mut R)) -> Self
fn tap_ref_mut_dbg<R>(self, func: impl FnOnce(&mut R)) -> Self
.tap_ref_mut()
only in debug builds, and is erased in release
builds.§fn tap_deref_dbg<T>(self, func: impl FnOnce(&T)) -> Self
fn tap_deref_dbg<T>(self, func: impl FnOnce(&T)) -> Self
.tap_deref()
only in debug builds, and is erased in release
builds.