Struct multiversx_chain_vm::vm_hooks::SingleTxApiData
source · pub struct SingleTxApiData {
pub tx_input_box: Box<TxInput>,
pub accounts: Mutex<HashMap<VMAddress, AccountData>>,
pub managed_types: Mutex<TxManagedTypes>,
pub tx_result_cell: Mutex<TxResult>,
pub previous_block_info: BlockInfo,
pub current_block_info: BlockInfo,
}
Fields§
§tx_input_box: Box<TxInput>
§accounts: Mutex<HashMap<VMAddress, AccountData>>
§managed_types: Mutex<TxManagedTypes>
§tx_result_cell: Mutex<TxResult>
§previous_block_info: BlockInfo
§current_block_info: BlockInfo
Implementations§
source§impl SingleTxApiData
impl SingleTxApiData
pub fn with_account_mut<R, F>(&self, address: &VMAddress, f: F) -> Rwhere F: FnOnce(&mut AccountData) -> R,
Trait Implementations§
source§impl Debug for SingleTxApiData
impl Debug for SingleTxApiData
source§impl Default for SingleTxApiData
impl Default for SingleTxApiData
source§fn default() -> SingleTxApiData
fn default() -> SingleTxApiData
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl RefUnwindSafe for SingleTxApiData
impl Send for SingleTxApiData
impl Sync for SingleTxApiData
impl Unpin for SingleTxApiData
impl UnwindSafe for SingleTxApiData
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