pub struct TxResult {
pub result_status: ReturnCode,
pub result_message: String,
pub result_values: Vec<Vec<u8>>,
pub result_logs: Vec<TxLog>,
pub gas_used: GasUsed,
pub pending_calls: TxResultCalls,
pub all_calls: Vec<AsyncCallTxData>,
}Fields§
§result_status: ReturnCode§result_message: String§result_values: Vec<Vec<u8>>§result_logs: Vec<TxLog>§gas_used: GasUsed§pending_calls: TxResultCallsCalls that need to be executed.
Structure is emptied as soon as async calls are executed.
all_calls: Vec<AsyncCallTxData>All async calls launched from the tx (legacy async, promises, transfer-execute).
Is never cleared of its contents.
Implementations§
Source§impl TxResult
impl TxResult
pub fn empty() -> TxResult
pub fn print(&self)
pub fn from_panic_obj(panic_obj: &TxPanic) -> Self
pub fn from_panic_string(s: &str) -> Self
pub fn from_unknown_panic() -> Self
pub fn from_error<S>(return_code: ReturnCode, result_message: S) -> Self
pub fn from_vm_error<S>(result_message: S) -> Self
pub fn from_function_not_found() -> Self
pub fn merge_after_sync_call(&mut self, sync_call_result: &TxResult)
pub fn assert_ok(&self)
pub fn assert_error(&self, expected_status: u64, expected_message: &str)
pub fn assert_user_error(&self, expected_message: &str)
Trait Implementations§
Auto Trait Implementations§
impl Freeze for TxResult
impl RefUnwindSafe for TxResult
impl Send for TxResult
impl Sync for TxResult
impl Unpin for TxResult
impl UnwindSafe for TxResult
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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