pub struct TxResult {
pub result_status: ReturnCode,
pub result_message: String,
pub result_values: Vec<Vec<u8>>,
pub result_logs: Vec<TxLog>,
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>
§pending_calls: TxResultCalls
Calls 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) -> TxResult
pub fn from_panic_string(s: &str) -> TxResult
pub fn from_unknown_panic() -> TxResult
pub fn from_vm_error<S>(result_message: S) -> TxResult
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> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> InterpretableFrom<&T> for Twhere
T: Clone,
impl<T> InterpretableFrom<&T> for Twhere
T: Clone,
fn interpret_from(from: &T, _context: &InterpreterContext) -> T
Source§impl<T> InterpretableFrom<T> for T
impl<T> InterpretableFrom<T> for T
fn interpret_from(from: T, _context: &InterpreterContext) -> T
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