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 !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