multiversx_sc::types

Trait TxEnvWithTxHash

Source
pub trait TxEnvWithTxHash: TxEnv {
    // Required methods
    fn set_tx_hash(&mut self, tx_hash: H256);
    fn take_tx_hash(&mut self) -> Option<H256>;
}

Required Methods§

Source

fn set_tx_hash(&mut self, tx_hash: H256)

Source

fn take_tx_hash(&mut self) -> Option<H256>

Retrieves current tx hash, while resetting it in self.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§