pub enum ComputePhaseSkipReason {
NoState,
BadState,
NoGas,
Suspended,
}Expand description
Enum with reasons for skipping compute phase.
Variants§
NoState
Contract doesn’t have state to execute.
BadState
Contract state is invalid.
NoGas
Not enough gas to execute compute phase.
Suspended
Account was suspended by the config.
Trait Implementations§
Source§impl Clone for ComputePhaseSkipReason
impl Clone for ComputePhaseSkipReason
Source§fn clone(&self) -> ComputePhaseSkipReason
fn clone(&self) -> ComputePhaseSkipReason
Returns a duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ComputePhaseSkipReason
impl Debug for ComputePhaseSkipReason
Source§impl<'de> Deserialize<'de> for ComputePhaseSkipReason
impl<'de> Deserialize<'de> for ComputePhaseSkipReason
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl<'a> Load<'a> for ComputePhaseSkipReason
impl<'a> Load<'a> for ComputePhaseSkipReason
Source§impl PartialEq for ComputePhaseSkipReason
impl PartialEq for ComputePhaseSkipReason
Source§fn eq(&self, other: &ComputePhaseSkipReason) -> bool
fn eq(&self, other: &ComputePhaseSkipReason) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for ComputePhaseSkipReason
impl Serialize for ComputePhaseSkipReason
Source§impl Store for ComputePhaseSkipReason
impl Store for ComputePhaseSkipReason
Source§fn store_into(
&self,
builder: &mut CellBuilder,
_: &dyn CellContext,
) -> Result<(), Error>
fn store_into( &self, builder: &mut CellBuilder, _: &dyn CellContext, ) -> Result<(), Error>
Tries to store itself into the cell builder.
impl Copy for ComputePhaseSkipReason
impl Eq for ComputePhaseSkipReason
impl StructuralPartialEq for ComputePhaseSkipReason
Auto Trait Implementations§
impl Freeze for ComputePhaseSkipReason
impl RefUnwindSafe for ComputePhaseSkipReason
impl Send for ComputePhaseSkipReason
impl Sync for ComputePhaseSkipReason
impl Unpin for ComputePhaseSkipReason
impl UnwindSafe for ComputePhaseSkipReason
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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
Compares
self to key and returns true if they are equal.