Struct parables_testing::evm::Call  [−][src]
#[must_use]pub struct Call<T> { pub outcome: Outcome<T>, pub gas_used: U256, pub gas_price: U256, pub sender: Address, }
The result of executing a call transaction.
Fields
outcome: Outcome<T>
                           The outcome of a call.
gas_used: U256
                           Gas used to perform call.
gas_price: U256
                           The price payed for each gas.
sender: Address
                           The sender of the transaction.
Methods
impl<T> Call<T>[src] 
impl<T> Call<T>pub fn gas_total(&self) -> U256[src] 
pub fn gas_total(&self) -> U256Access the total amount of gas used.
pub fn is_ok(&self) -> bool[src] 
pub fn is_ok(&self) -> boolCheck if the outcome is OK.
pub fn is_err(&self) -> bool[src] 
pub fn is_err(&self) -> boolCheck if outcome is errored.
pub fn is_reverted(&self) -> bool[src] 
pub fn is_reverted(&self) -> boolCheck if the outcome is reverted.
pub fn is_reverted_with(
    &self, 
    stmt: impl AsRef<str> + Copy
) -> bool[src] 
pub fn is_reverted_with(
    &self, 
    stmt: impl AsRef<str> + Copy
) -> boolCheck that a revert happened with the specified statement.
pub fn ok(self) -> Result<T, Error>[src] 
pub fn ok(self) -> Result<T, Error>Convert the outcome into a result.
Trait Implementations
impl<T: Debug> Debug for Call<T>[src] 
impl<T: Debug> Debug for Call<T>fn fmt(&self, f: &mut Formatter) -> Result[src] 
fn fmt(&self, f: &mut Formatter) -> ResultFormats the value using the given formatter. Read more
impl<T: Clone> Clone for Call<T>[src] 
impl<T: Clone> Clone for Call<T>fn clone(&self) -> Call<T>[src] 
fn clone(&self) -> Call<T>Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0[src] 
fn clone_from(&mut self, source: &Self)1.0.0
[src]Performs copy-assignment from source. Read more
impl<T: PartialEq> PartialEq for Call<T>[src] 
impl<T: PartialEq> PartialEq for Call<T>fn eq(&self, other: &Call<T>) -> bool[src] 
fn eq(&self, other: &Call<T>) -> boolThis method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, other: &Call<T>) -> bool[src] 
fn ne(&self, other: &Call<T>) -> boolThis method tests for !=.
impl<T: Eq> Eq for Call<T>[src] 
impl<T: Eq> Eq for Call<T>impl<T> Display for Call<T> where
    T: Debug, [src] 
impl<T> Display for Call<T> where
    T: Debug,