Struct drt_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: BlockInfoImplementations§
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 !Freeze for SingleTxApiData
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
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more