Enum near_primitives::types::StateChangeCause [−][src]
A structure used to index state changes due to transaction/receipt processing and other things.
Variants
A type of update that does not get finalized. Used for verification and execution of
immutable smart contract methods. Attempt fo finalize a TrieUpdate
containing such
change will lead to panic.
A type of update that is used to mark the initial storage update, e.g. during genesis or in tests setup.
Processing of a transaction.
Fields of TransactionProcessing
tx_hash: CryptoHash
Before the receipt is going to be processed, inputs get drained from the state, which causes state modification.
Fields of ActionReceiptProcessingStarted
receipt_hash: CryptoHash
Computation of gas reward.
Fields of ActionReceiptGasReward
receipt_hash: CryptoHash
Processing of a receipt.
Fields of ReceiptProcessing
receipt_hash: CryptoHash
The given receipt was postponed. This is either a data receipt or an action receipt.
A DataReceipt
can be postponed if the corresponding ActionReceipt
is not received yet,
or other data dependencies are not satisfied.
An ActionReceipt
can be postponed if not all data dependencies are received.
Fields of PostponedReceipt
receipt_hash: CryptoHash
Updated delayed receipts queue in the state. We either processed previously delayed receipts or added more receipts to the delayed queue.
State change that happens when we update validator accounts. Not associated with with any specific transaction or receipt.
Trait Implementations
impl BorshDeserialize for StateChangeCause where
CryptoHash: BorshDeserialize,
CryptoHash: BorshDeserialize,
CryptoHash: BorshDeserialize,
CryptoHash: BorshDeserialize,
CryptoHash: BorshDeserialize,
[src]
CryptoHash: BorshDeserialize,
CryptoHash: BorshDeserialize,
CryptoHash: BorshDeserialize,
CryptoHash: BorshDeserialize,
CryptoHash: BorshDeserialize,
fn deserialize(buf: &mut &[u8]) -> Result<Self, Error>
[src]
pub fn try_from_slice(v: &[u8]) -> Result<Self, Error>
[src]
pub fn is_u8() -> bool
[src]
impl BorshSerialize for StateChangeCause where
CryptoHash: BorshSerialize,
CryptoHash: BorshSerialize,
CryptoHash: BorshSerialize,
CryptoHash: BorshSerialize,
CryptoHash: BorshSerialize,
[src]
CryptoHash: BorshSerialize,
CryptoHash: BorshSerialize,
CryptoHash: BorshSerialize,
CryptoHash: BorshSerialize,
CryptoHash: BorshSerialize,
fn serialize<W: Write>(&self, writer: &mut W) -> Result<(), Error>
[src]
pub fn try_to_vec(&self) -> Result<Vec<u8, Global>, Error>
[src]
pub fn is_u8() -> bool
[src]
impl Clone for StateChangeCause
[src]
fn clone(&self) -> StateChangeCause
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for StateChangeCause
[src]
impl From<StateChangeCause> for StateChangeCauseView
[src]
fn from(state_change_cause: StateChangeCause) -> Self
[src]
Auto Trait Implementations
impl RefUnwindSafe for StateChangeCause
impl Send for StateChangeCause
impl Sync for StateChangeCause
impl Unpin for StateChangeCause
impl UnwindSafe for StateChangeCause
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,