#[repr(u32)]pub enum ExecutionFailureCode {
ArithmeticFault = 1,
ResourceLimit = 2,
UniqueConflict = 3,
}Expand description
A dependency-validated deterministic command execution failure.
Zero is reserved for wire-level unspecified values and is never represented by this type.
Variants§
ArithmeticFault = 1
Checked arithmetic could not produce a valid contract value.
ResourceLimit = 2
A fixed deterministic execution budget was exhausted.
UniqueConflict = 3
Another entity already owns one exact declared unique value.
Implementations§
Trait Implementations§
Source§impl Clone for ExecutionFailureCode
impl Clone for ExecutionFailureCode
impl Copy for ExecutionFailureCode
Source§impl Debug for ExecutionFailureCode
impl Debug for ExecutionFailureCode
impl Eq for ExecutionFailureCode
Source§impl From<ExecutionFailureCode> for u32
impl From<ExecutionFailureCode> for u32
Source§fn from(value: ExecutionFailureCode) -> Self
fn from(value: ExecutionFailureCode) -> Self
Converts to this type from the input type.
Source§impl Hash for ExecutionFailureCode
impl Hash for ExecutionFailureCode
Source§impl Ord for ExecutionFailureCode
impl Ord for ExecutionFailureCode
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialEq for ExecutionFailureCode
impl PartialEq for ExecutionFailureCode
Source§impl PartialOrd for ExecutionFailureCode
impl PartialOrd for ExecutionFailureCode
impl StructuralPartialEq for ExecutionFailureCode
Auto Trait Implementations§
impl Freeze for ExecutionFailureCode
impl RefUnwindSafe for ExecutionFailureCode
impl Send for ExecutionFailureCode
impl Sync for ExecutionFailureCode
impl Unpin for ExecutionFailureCode
impl UnsafeUnpin for ExecutionFailureCode
impl UnwindSafe for ExecutionFailureCode
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